public class SamplingTask
extends java.lang.Object
Constructor and Description |
---|
SamplingTask(int intervalMs,
int maxDurationMs) |
Modifier and Type | Method and Description |
---|---|
protected void |
dumpedThreads(java.lang.management.ThreadInfo[] infos) |
int |
getDumpInterval() |
long |
getGcTime() |
double |
getOsAverageLoad() |
long |
getSampledTime() |
java.util.List<java.lang.management.ThreadInfo[]> |
getThreadInfos() |
long |
getTotalTime() |
boolean |
isValid(long dumpingDuration) |
void |
stop() |
protected void dumpedThreads(java.lang.management.ThreadInfo[] infos)
public int getDumpInterval()
public java.util.List<java.lang.management.ThreadInfo[]> getThreadInfos()
public long getSampledTime()
public long getTotalTime()
public long getGcTime()
public double getOsAverageLoad()
public boolean isValid(long dumpingDuration)
public void stop()