Package PamUtils
Class CPUMonitor
java.lang.Object
PamUtils.CPUMonitor
Class to monitor Thread CPU usage over multiple calls.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSummary
(String prefix) long
void
reset()
void
start()
long
stop()
-
Constructor Details
-
CPUMonitor
public CPUMonitor()
-
-
Method Details
-
reset
public void reset() -
start
public void start() -
stop
public long stop() -
getTotalProcessTime
public long getTotalProcessTime()- Returns:
- the totalProcessTime
-
getProcessCalls
public long getProcessCalls()- Returns:
- the processCalls
-
getSummary
-
getSummary
-