aboutsummaryrefslogtreecommitdiff
path: root/sponge
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-05-29 18:45:16 +0100
committerLuck <git@lucko.me>2018-05-29 18:45:16 +0100
commita092e8b1495dc75ff57978985d973185d15e7449 (patch)
tree37c8fcfbfb5d11e893cd975530024d666f9f3ff2 /sponge
parentfd01dfd3a461e36ab2966db7119732f739905912 (diff)
downloadspark-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.java6
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