Class ThreadPerfCounterBlock

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

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

    • ThreadPerfCounterBlock

      public ThreadPerfCounterBlock(String name, int threadID, int owningProcessID, long startTime, long userTime, long kernelTime, int priority, int threadState, int threadWaitReason, long startAddress, long contextSwitches)
      Constructor.
      Parameters:
      name - the name
      threadID - the threadID
      owningProcessID - the owningProcessID
      startTime - the startTime
      userTime - the userTime
      kernelTime - the kernelTime
      priority - the priority
      threadState - the threadState
      threadWaitReason - the threadWaitReason
      startAddress - the startAddress
      contextSwitches - the contextSwitches
  • Method Details

    • getName

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

      public int getThreadID()
      Gets the threadID.
      Returns:
      the threadID
    • getOwningProcessID

      public int getOwningProcessID()
      Gets the owningProcessID.
      Returns:
      the owningProcessID
    • getStartTime

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

      public long getUserTime()
      Gets the userTime.
      Returns:
      the userTime
    • getKernelTime

      public long getKernelTime()
      Gets the kernelTime.
      Returns:
      the kernelTime
    • getPriority

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

      public int getThreadState()
      Gets the threadState.
      Returns:
      the threadState
    • getThreadWaitReason

      public int getThreadWaitReason()
      Gets the threadWaitReason.
      Returns:
      the threadWaitReason
    • getStartAddress

      public long getStartAddress()
      Gets the startMemoryAddress.
      Returns:
      the startMemoryAddress
    • getContextSwitches

      public long getContextSwitches()
      Gets the contextSwitches.
      Returns:
      the contextSwitches