Class Stacktraces

java.lang.Object
com.pnfsoftware.jeb.util.base.Stacktraces

public class Stacktraces extends Object
Utility routines to format stack-traces.
  • Constructor Details

    • Stacktraces

      public Stacktraces()
  • Method Details

    • getCallerString

      public static String getCallerString(String... skiplist)
      Parameters:
      skiplist -
      Returns:
    • getCallerString

      public static String getCallerString(StackTraceElement[] stlist, String... skiplist)
      Parameters:
      skiplist - classes in the stack frame to be skipped before the first "interesting" caller
      Returns:
    • formatCallerOriginString

      public static String formatCallerOriginString()
    • formatCallerOriginString

      public static String formatCallerOriginString(StackTraceElement[] stlist)
    • formatCallerOriginString

      public static String formatCallerOriginString(StackTraceElement[] stlist, int start)
    • formatThreadStacktraces

      public static String 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