public class ThreadDumper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
dumpCallStack(java.lang.Thread thread,
java.io.Writer f,
java.lang.StackTraceElement [] stackTraceElements) |
static java.lang.String |
dumpEdtStackTrace(java.lang.management.ThreadInfo[] threadInfos) |
static java.lang.String |
dumpThreadsToString() |
static java.lang.String |
getEdtStackForCrash(java.lang.String fullThreadDump,
java.lang.String exceptionType)
Returns the EDT stack in a form that Google Crash understands, or null if the EDT stack cannot be determined.
|
static ThreadDump |
getThreadDumpInfo(java.lang.management.ThreadInfo[] threadInfos) |
static java.lang.management.ThreadInfo [] |
getThreadInfos() |
static java.lang.management.ThreadInfo [] |
getThreadInfos(java.lang.management.ThreadMXBean threadMXBean,
boolean sort) |
static boolean |
isEDT(java.lang.String threadName) |
static boolean |
isEDT(java.lang.management.ThreadInfo info) |
static java.lang.management.ThreadInfo [] |
sort(java.lang.management.ThreadInfo [] threads) |
public static java.lang.String dumpThreadsToString()
public static java.lang.String dumpEdtStackTrace(java.lang.management.ThreadInfo[] threadInfos)
public static java.lang.management.ThreadInfo [] getThreadInfos()
public static ThreadDump getThreadDumpInfo(java.lang.management.ThreadInfo[] threadInfos)
public static java.lang.management.ThreadInfo [] getThreadInfos(java.lang.management.ThreadMXBean threadMXBean, boolean sort)
public static boolean isEDT(java.lang.management.ThreadInfo info)
public static boolean isEDT(java.lang.String threadName)
public static java.lang.management.ThreadInfo [] sort(java.lang.management.ThreadInfo [] threads)
public static void dumpCallStack(java.lang.Thread thread, java.io.Writer f, java.lang.StackTraceElement [] stackTraceElements)
public static java.lang.String getEdtStackForCrash(java.lang.String fullThreadDump, java.lang.String exceptionType)
fullThreadDump
- lines comprising a thread dump as formatted by dumpCallStack(ThreadInfo, Writer, StackTraceElement[])