Interface ThreadDumpProducer


public interface ThreadDumpProducer
Produces thread dumps with a string representations of stack traces for the supplied threads. If the stack trace of a thread is unavailable (per the contract of Thread.getStackTrace()), the ThreadDump is created with an empty stack
  • Method Details

    • produce

      @Nonnull List<ThreadDump> produce(@Nonnull Set<Thread> threads)
      Produces thread dumps for the supplied threads
      Parameters:
      threads - the threads to generate stack traces for
      Returns:
      thread dumps for each of the provided threads
    • toStackTraceString

      @Nullable String toStackTraceString(List<StackTraceElement> elements)