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 String
static String
formatCallerOriginString
(StackTraceElement[] stlist) static String
formatCallerOriginString
(StackTraceElement[] stlist, int start) static String
Format the stack traces of all currently alive threads.static String
formatThreadStacktraces
(boolean excludeCurrentThread, boolean includeDeadThreads) Format the stack traces of all threads.static String
getCallerString
(StackTraceElement[] stlist, String... skiplist) static String
getCallerString
(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
-