public class ProcessCpuStatistics extends Statistics
Constructor and Description |
---|
ProcessCpuStatistics(int numReadsToStore)
Creates a cpu statistics object to track the JVM process only that will store up to the specified number of reads to use in it's average calculation
|
Modifier and Type | Method and Description |
---|---|
double |
getCurrentLoadPercent()
Returns the current load as a percentage (from 0 to 1).
|
getAndStoreCurrentLoadPercent, getAverageLoadPercent
public ProcessCpuStatistics(int numReadsToStore)
numReadsToStore
- How many items to store for average calculation (must be greater than 0)public double getCurrentLoadPercent()
Statistics
getCurrentLoadPercent
in class Statistics