@NotThreadSafe public final class JvmPauseMonitor extends Object
Constructor and Description |
---|
JvmPauseMonitor(long gcSleepIntervalMs,
long warnThresholdMs,
long infoThresholdMs)
Constructs JvmPauseMonitor.
|
Modifier and Type | Method and Description |
---|---|
long |
getInfoTimeExceeded() |
long |
getTotalExtraTime() |
long |
getWarnTimeExceeded() |
boolean |
isStarted() |
void |
reset()
Resets value of mJvmMonitorThread.
|
void |
start()
Starts jvm monitor thread.
|
void |
stop()
Stops jvm monitor.
|
public JvmPauseMonitor(long gcSleepIntervalMs, long warnThresholdMs, long infoThresholdMs)
gcSleepIntervalMs
- The time in milliseconds to sleep for in checking for GC pauseswarnThresholdMs
- when gc pauses exceeds this time in milliseconds log WARNinfoThresholdMs
- when gc pauses exceeds this time in milliseconds log INFOpublic void start()
public void stop()
public void reset()
public boolean isStarted()
public long getWarnTimeExceeded()
public long getInfoTimeExceeded()
public long getTotalExtraTime()
Copyright © 2023. All Rights Reserved.