public class SystemCpuStatistics extends Statistics
| Constructor and Description |
|---|
SystemCpuStatistics(int numReadsToStore)
Creates a cpu statistics object to track the system-wide cpu use 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, getAverageLoadPercentpublic SystemCpuStatistics(int numReadsToStore)
numReadsToStore - How many items to store for average calculation (must be greater than 0)public double getCurrentLoadPercent()
StatisticsgetCurrentLoadPercent in class Statistics