@Deprecated public final class JitterSampler extends Object
This class can be used to take snapshots of a thread's stack trace at different stages and measure how long the thread has been blocked.
| Modifier and Type | Field and Description |
|---|---|
static String |
PROFILE_OF_THE_THREAD
Deprecated.
|
static String |
THREAD_HAS_BLOCKED_FOR
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
atStage(String desc)
Deprecated.
Marks the current stage of the thread for profiling.
|
static void |
finished()
Deprecated.
Marks the current thread as finished for profiling.
|
static void |
sleepSilently(int millis)
Deprecated.
Use
Jvm.pause(long) instead |
static String |
takeSnapshot()
Deprecated.
Takes a snapshot of the current thread state if the thread has been
blocked longer than the specified threshold.
|
static String |
takeSnapshot(long threshold)
Deprecated.
Takes a snapshot of the current thread state if the thread has been
blocked longer than the specified threshold.
|
public static final String PROFILE_OF_THE_THREAD
public static final String THREAD_HAS_BLOCKED_FOR
public static void atStage(String desc)
desc - a description of the current stagepublic static String takeSnapshot()
public static String takeSnapshot(long threshold)
threshold - the time threshold in nanosecondspublic static void finished()
@Deprecated public static void sleepSilently(int millis)
Jvm.pause(long) insteadCopyright © 2023. All rights reserved.