From a092e8b1495dc75ff57978985d973185d15e7449 Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 29 May 2018 18:45:16 +0100 Subject: Improvements for the BungeeCord version * Use /gprofiler and /sparkbungee aliases so the normal commands reach the backend server * Profile all threads by default --- sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sponge/src/main/java/me') 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 -- cgit