Package oshi.driver.windows.perfmon
Class LoadAverage
java.lang.Object
oshi.driver.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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double[]
private static double[]
private static Thread
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]
queryLoadAverage
(int nelem) static void
static void
-
Field Details
-
loadAvgThread
-
loadAverages
private static double[] loadAverages -
EXP_WEIGHT
private static final double[] EXP_WEIGHT
-
-
Constructor Details
-
LoadAverage
private LoadAverage()
-
-
Method Details
-
queryLoadAverage
public static double[] queryLoadAverage(int nelem) -
stopDaemon
public static void stopDaemon() -
startDaemon
public static void startDaemon() -
queryNonIdleTicks
-