public class CPUMonitor extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MONITOR_ALL_THREAD_FINELY |
static int |
MONITOR_ALL_THREAD_ROUGHLY |
static int |
MONITOR_CURRENT_THREAD |
Constructor and Description |
---|
CPUMonitor() |
CPUMonitor(int type) |
Modifier and Type | Method and Description |
---|---|
static int |
getAvailableProcessors()
Deprecated.
|
long |
getCPUElapsedTimeMilli() |
double |
getCPUElapsedTimeSec() |
long |
getElapsedTimeMilli() |
double |
getElapsedTimeSec() |
int |
getThreadCount() |
long |
getUserElapsedTimeMilli() |
double |
getUserElapsedTimeSec() |
void |
start() |
void |
stop() |
public static final int MONITOR_CURRENT_THREAD
public static final int MONITOR_ALL_THREAD_ROUGHLY
public static final int MONITOR_ALL_THREAD_FINELY
public CPUMonitor()
public CPUMonitor(int type)
public void start() throws java.lang.IllegalAccessError
java.lang.IllegalAccessError
public void stop()
public long getCPUElapsedTimeMilli()
public long getUserElapsedTimeMilli()
public double getCPUElapsedTimeSec()
public double getUserElapsedTimeSec()
public double getElapsedTimeSec()
public int getThreadCount()
@Deprecated public static int getAvailableProcessors()
public long getElapsedTimeMilli()