Package oshi.driver.windows.perfmon
Class ThreadInformation
- java.lang.Object
-
- oshi.driver.windows.perfmon.ThreadInformation
-
@ThreadSafe public final class ThreadInformation extends java.lang.Object
Utility to query Thread Information performance counter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThreadInformation.ThreadPerformanceProperty
Thread performance counters
-
Constructor Summary
Constructors Modifier Constructor Description private
ThreadInformation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pair<java.util.List<java.lang.String>,java.util.Map<ThreadInformation.ThreadPerformanceProperty,java.util.List<java.lang.Long>>>
queryThreadCounters()
Returns thread counters.static Pair<java.util.List<java.lang.String>,java.util.Map<ThreadInformation.ThreadPerformanceProperty,java.util.List<java.lang.Long>>>
queryThreadCounters(java.lang.String name, int threadNum)
Returns thread counters filtered to the specified process name and thread.
-
-
-
Method Detail
-
queryThreadCounters
public static Pair<java.util.List<java.lang.String>,java.util.Map<ThreadInformation.ThreadPerformanceProperty,java.util.List<java.lang.Long>>> queryThreadCounters()
Returns thread counters.- Returns:
- Thread counters for each thread.
-
queryThreadCounters
public static Pair<java.util.List<java.lang.String>,java.util.Map<ThreadInformation.ThreadPerformanceProperty,java.util.List<java.lang.Long>>> queryThreadCounters(java.lang.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.
-
-