public final class ThreadDumpInfo extends Object implements ResponseBody, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ThreadDumpInfo.ThreadInfo
Class containing information about a thread.
|
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_THREAD_INFOS |
Modifier and Type | Method and Description |
---|---|
static ThreadDumpInfo |
create(Collection<ThreadDumpInfo.ThreadInfo> threadInfos) |
static ThreadDumpInfo |
dumpAndCreate(int stacktraceMaxDepth) |
Collection<ThreadDumpInfo.ThreadInfo> |
getThreadInfos() |
protected static String |
stringifyThreadInfo(ThreadInfo threadInfo,
int maxDepth)
Custom stringify format of JVM thread info to bypass the MAX_FRAMES = 8 limitation.
|
public static final String FIELD_NAME_THREAD_INFOS
public Collection<ThreadDumpInfo.ThreadInfo> getThreadInfos()
public static ThreadDumpInfo create(Collection<ThreadDumpInfo.ThreadInfo> threadInfos)
public static ThreadDumpInfo dumpAndCreate(int stacktraceMaxDepth)
@VisibleForTesting protected static String stringifyThreadInfo(ThreadInfo threadInfo, int maxDepth)
This method is based on https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/java/lang/management/ThreadInfo.java#L597
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.