diff options
author | Luck <git@lucko.me> | 2018-05-29 18:45:16 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2018-05-29 18:45:16 +0100 |
commit | a092e8b1495dc75ff57978985d973185d15e7449 (patch) | |
tree | 37c8fcfbfb5d11e893cd975530024d666f9f3ff2 /sponge | |
parent | fd01dfd3a461e36ab2966db7119732f739905912 (diff) | |
download | spark-a092e8b1495dc75ff57978985d973185d15e7449.tar.gz spark-a092e8b1495dc75ff57978985d973185d15e7449.tar.bz2 spark-a092e8b1495dc75ff57978985d973185d15e7449.zip |
Improvements for the BungeeCord version
* Use /gprofiler and /sparkbungee aliases so the normal commands reach the backend server
* Profile all threads by default
Diffstat (limited to 'sponge')
-rw-r--r-- | sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java b/sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java index 92ecc43..cad19df 100644 --- a/sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java +++ b/sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java @@ -3,6 +3,7 @@ package me.lucko.spark.sponge; import com.google.inject.Inject; import me.lucko.spark.common.CommandHandler; +import me.lucko.spark.profiler.ThreadDumper; import me.lucko.spark.sponge.utils.PomData; import org.spongepowered.api.Game; @@ -63,6 +64,11 @@ public class SparkSpongePlugin implements CommandCallable { protected void runAsync(Runnable r) { asyncExecutor.execute(r); } + + @Override + protected ThreadDumper getDefaultThreadDumper() { + return new ThreadDumper.Specific(new long[]{Thread.currentThread().getId()}); + } }; @Inject |