public class PdhUtil extends Object
| Constructor and Description |
|---|
PdhUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCounter(com.sun.jna.ptr.PointerByReference query,
String path,
com.sun.jna.ptr.PointerByReference p)
Adds a pdh counter to a query
|
static boolean |
openQuery(com.sun.jna.ptr.PointerByReference p)
Open a pdh query
|
static long |
queryCounter(com.sun.jna.ptr.PointerByReference counter)
Get value of pdh counter
|
static boolean |
updateCounters(com.sun.jna.ptr.PointerByReference query)
Update counters to values since the last call
|
public static boolean openQuery(com.sun.jna.ptr.PointerByReference p)
p - pointer to the querypublic static void addCounter(com.sun.jna.ptr.PointerByReference query,
String path,
com.sun.jna.ptr.PointerByReference p)
query - Pointer to the query to add the counterpath - String name of the PerfMon counterp - Pointer to the counterpublic static boolean updateCounters(com.sun.jna.ptr.PointerByReference query)
query - The query whose counters to updatepublic static long queryCounter(com.sun.jna.ptr.PointerByReference counter)
counter - The counter to get the value ofCopyright © 2010–2016 com.github.dblock. All rights reserved.