Class ProcessPerformanceData

java.lang.Object
oshi.driver.windows.registry.ProcessPerformanceData

@ThreadSafe
public final class ProcessPerformanceData
extends java.lang.Object
Utility to read process data from HKEY_PERFORMANCE_DATA information.
  • Method Summary

    Modifier and Type Method Description
    static java.util.Map<java.lang.Integer,​OSProcess> buildProcessMapFromRegistry​(OperatingSystem os, java.util.Collection<java.lang.Integer> pids)
    Query the registry for process performance counters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • buildProcessMapFromRegistry

      public static java.util.Map<java.lang.Integer,​OSProcess> buildProcessMapFromRegistry​(OperatingSystem os, java.util.Collection<java.lang.Integer> pids)
      Query the registry for process performance counters
      Parameters:
      os - The OperatingSystem object
      pids - An optional collection of process IDs to filter the list to. May be null for no filtering.
      Returns:
      A map with Process ID as the key and an OSProcess object populated with performance counter information if successful, or null otherwise.