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 /bukkit/src | |
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 'bukkit/src')
-rw-r--r-- | bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java b/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java index cc774a3..8b3ed28 100644 --- a/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java +++ b/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java @@ -1,6 +1,7 @@ package me.lucko.spark.bukkit; import me.lucko.spark.common.CommandHandler; +import me.lucko.spark.profiler.ThreadDumper; import org.bukkit.ChatColor; import org.bukkit.command.Command; @@ -24,6 +25,11 @@ public class SparkBukkitPlugin extends JavaPlugin { protected void runAsync(Runnable r) { getServer().getScheduler().runTaskAsynchronously(SparkBukkitPlugin.this, r); } + + @Override + protected ThreadDumper getDefaultThreadDumper() { + return new ThreadDumper.Specific(new long[]{Thread.currentThread().getId()}); + } }; @Override |