Package io.deephaven.util.thread
Class ThreadDump
java.lang.Object
io.deephaven.util.thread.ThreadDump
A simple method for generating a Thread dump for this JVM; it doesn't do all the stuff that the kill -3 does; but you
can easily run it from inside the JVM without having to send yourself a signal.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generate a thread dump as a String.static void
threadDump
(Logger logger) Write a thread dump to the provided logger.static void
threadDump
(PrintStream out) Write a thread dump to the given PrintStream.
-
Constructor Details
-
ThreadDump
public ThreadDump()
-
-
Method Details
-
threadDump
Write a thread dump to the given PrintStream.- Parameters:
out
- the output stream to write the thread dump of the current process to
-
threadDump
Write a thread dump to the provided logger.- Parameters:
logger
- the logger to write the thread dump of the current process to
-
threadDump
Generate a thread dump as a String.- Returns:
- a String containing a thread dump of the curent process.
-