Package oshi.driver.windows.perfmon
Class ThreadInformation
java.lang.Object
oshi.driver.windows.perfmon.ThreadInformation
Utility to query Thread Information performance counter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Thread performance counters -
Method Summary
Modifier and TypeMethodDescriptionReturns thread counters.queryThreadCounters
(String name, int threadNum) Returns thread counters filtered to the specified process name and thread.
-
Method Details
-
queryThreadCounters
public static Pair<List<String>,Map<ThreadInformation.ThreadPerformanceProperty, queryThreadCounters()List<Long>>> Returns thread counters.- Returns:
- Thread counters for each thread.
-
queryThreadCounters
public static Pair<List<String>,Map<ThreadInformation.ThreadPerformanceProperty, queryThreadCountersList<Long>>> (String name, int threadNum) Returns thread counters filtered to the specified process name and thread.- Parameters:
name
- The process name to filterthreadNum
- The thread number to match. -1 matches all threads.- Returns:
- Thread counters for each thread.
-