Package com.pnfsoftware.jeb.util.base
Class Stacktraces
java.lang.Object
com.pnfsoftware.jeb.util.base.Stacktraces
Utility routines to format stack-traces.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringformatCallerOriginString(StackTraceElement[] stlist) static StringformatCallerOriginString(StackTraceElement[] stlist, int start) static StringFormat the stack traces of all currently alive threads.static StringformatThreadStacktraces(boolean excludeCurrentThread, boolean includeDeadThreads) Format the stack traces of all threads.static StringgetCallerString(StackTraceElement[] stlist, String... skiplist) static StringgetCallerString(String... skiplist)
-
Constructor Details
-
Stacktraces
public Stacktraces()
-
-
Method Details
-
getCallerString
- Parameters:
skiplist-- Returns:
-
getCallerString
- Parameters:
skiplist- classes in the stack frame to be skipped before the first "interesting" caller- Returns:
-
formatCallerOriginString
-
formatCallerOriginString
-
formatCallerOriginString
-
formatThreadStacktraces
Format the stack traces of all currently alive threads.- Returns:
- a record of threads and their current stacktraces
-
formatThreadStacktraces
public static String formatThreadStacktraces(boolean excludeCurrentThread, boolean includeDeadThreads) Format the stack traces of all threads.- Parameters:
excludeCurrentThread-includeDeadThreads-- Returns:
- a record of threads and their current stacktraces
-