Package com.complexible.common.util
Class ThreadDump
java.lang.Object
com.complexible.common.util.ThreadDump
A convenience class for getting a thread dump.
Note: Adjusted from Dropwizard metrics to perform grouping of threads.
-
Constructor Summary
ConstructorsConstructorDescriptionThreadDump(ThreadMXBean threadMXBean) ThreadDump(ThreadMXBean threadMXBean, Comparator<Map.Entry<List<StackTraceElement>, List<ThreadInfo>>> comparator) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdefaultDump(boolean includeLocks) dump(boolean lockedMonitors, boolean lockedSynchronizers) Dumps all of the threads' current informationas a string.
-
Constructor Details
-
ThreadDump
-
ThreadDump
public ThreadDump(ThreadMXBean threadMXBean, Comparator<Map.Entry<List<StackTraceElement>, List<ThreadInfo>>> comparator)
-
-
Method Details
-
defaultDump
-
dump
Dumps all of the threads' current informationas a string.- Parameters:
lockedMonitors- if true, dump all locked monitors.lockedSynchronizers- if true, dump all locked ownable synchronizers.
-