Class LoadAverage
java.lang.Object
oshi.driver.common.windows.perfmon.LoadAverage
Utility to calculate a load average equivalent metric on Windows. Starts a daemon thread to collect the necessary
counters and averages in 5-second intervals. Subclasses provide the platform-specific perfmon queries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]queryLoadAverage(int nelem) Query the non-idle ticks from performance counters.protected abstract longQuery the processor queue length from performance counters.voidvoid
-
Constructor Details
-
LoadAverage
public LoadAverage()
-
-
Method Details
-
queryNonIdleTicks
-
queryQueueLength
protected abstract long queryQueueLength()Query the processor queue length from performance counters.- Returns:
- The processor queue length
-
queryLoadAverage
public double[] queryLoadAverage(int nelem) -
stopDaemon
public void stopDaemon() -
startDaemon
public void startDaemon()
-