aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java')
-rw-r--r--common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java b/common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java
index 9c2e974..68d7dc9 100644
--- a/common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java
+++ b/common/src/main/java/me/lucko/spark/profiler/ThreadDumper.java
@@ -41,6 +41,8 @@ public interface ThreadDumper {
/**
* Implementation of {@link ThreadDumper} that generates data for all threads.
*/
+ ThreadDumper ALL = new All();
+
final class All implements ThreadDumper {
@Override
public ThreadInfo[] dumpThreads(ThreadMXBean threadBean) {