public final class PerformanceWatcher extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
class |
PerformanceWatcher.Snapshot |
Disposable.Parent
Constructor and Description |
---|
PerformanceWatcher() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.io.File |
dumpThreads(java.lang.String pathPrefix,
boolean millis) |
static void |
dumpThreadsToConsole(java.lang.String message) |
void |
edtEventFinished() |
void |
edtEventStarted() |
static PerformanceWatcher |
getInstance() |
static java.lang.String |
printStacktrace(java.lang.String headerMsg,
java.lang.Thread thread,
java.lang.StackTraceElement [] stackTrace) |
void |
processUnfinishedFreeze(java.util.function.BiConsumer<java.io.File,java.lang.Integer> consumer) |
static PerformanceWatcher.Snapshot |
takeSnapshot() |
public static PerformanceWatcher getInstance()
public void processUnfinishedFreeze(java.util.function.BiConsumer<java.io.File,java.lang.Integer> consumer)
public void dispose()
Disposable
dispose
in interface Disposable
public static java.lang.String printStacktrace(java.lang.String headerMsg, java.lang.Thread thread, java.lang.StackTraceElement [] stackTrace)
public void edtEventStarted()
public void edtEventFinished()
public java.io.File dumpThreads(java.lang.String pathPrefix, boolean millis)
public static void dumpThreadsToConsole(java.lang.String message)
public static PerformanceWatcher.Snapshot takeSnapshot()