Class ThreadInformationJNA

java.lang.Object
oshi.driver.windows.perfmon.ThreadInformationJNA

@ThreadSafe public final class ThreadInformationJNA extends Object
Utility to query Thread Information performance counter
  • Method Details

    • queryThreadCounters

      public static oshi.util.tuples.Pair<List<String>, Map<oshi.driver.common.windows.perfmon.ThreadInformation.ThreadPerformanceProperty, List<Long>>> queryThreadCounters()
      Returns thread counters.
      Returns:
      Thread counters for each thread.
    • queryThreadCounters

      public static oshi.util.tuples.Pair<List<String>, Map<oshi.driver.common.windows.perfmon.ThreadInformation.ThreadPerformanceProperty, List<Long>>> queryThreadCounters(String name, int threadNum)
      Returns thread counters filtered to the specified process name and thread.
      Parameters:
      name - The process name to filter
      threadNum - The thread number to match. -1 matches all threads.
      Returns:
      Thread counters for each thread.