Class ProcessPerfCounterBlock

java.lang.Object
oshi.driver.common.windows.registry.ProcessPerfCounterBlock

@Immutable public final class ProcessPerfCounterBlock extends Object
Encapsulates process performance data from the registry performance counter block.
  • Constructor Details

    • ProcessPerfCounterBlock

      public ProcessPerfCounterBlock(String name, int parentProcessID, int priority, long privateWorkingSetSize, long workingSetSize, long startTime, long upTime, long bytesRead, long bytesWritten, long pageFaults)
      Creates a ProcessPerfCounterBlock.
      Parameters:
      name - the process name
      parentProcessID - the parent process ID
      priority - the priority
      privateWorkingSetSize - the private working set size
      workingSetSize - the working set size
      startTime - the start time
      upTime - the up time
      bytesRead - bytes read
      bytesWritten - bytes written
      pageFaults - page faults
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • getParentProcessID

      public int getParentProcessID()
      Gets the parentProcessID.
      Returns:
      the parentProcessID
    • getPriority

      public int getPriority()
      Gets the priority.
      Returns:
      the priority
    • getPrivateWorkingSetSize

      public long getPrivateWorkingSetSize()
      Gets the Private Working Set size.
      Returns:
      the Private Working Set size
    • getWorkingSetSize

      public long getWorkingSetSize()
      Gets the Working Set size (RSS).
      Returns:
      the Working Set size (RSS)
    • getStartTime

      public long getStartTime()
      Gets the startTime.
      Returns:
      the startTime
    • getUpTime

      public long getUpTime()
      Gets the upTime.
      Returns:
      the upTime
    • getBytesRead

      public long getBytesRead()
      Gets the bytesRead.
      Returns:
      the bytesRead
    • getBytesWritten

      public long getBytesWritten()
      Gets the bytesWritten.
      Returns:
      the bytesWritten
    • getPageFaults

      public long getPageFaults()
      Gets the pageFaults.
      Returns:
      the pageFaults