Class ThreadPerfCounterBlock
java.lang.Object
oshi.driver.common.windows.registry.ThreadPerfCounterBlock
Encapsulates thread performance data from the registry performance counter block.
-
Constructor Summary
ConstructorsConstructorDescriptionThreadPerfCounterBlock(String name, int threadID, int owningProcessID, long startTime, long userTime, long kernelTime, int priority, int threadState, int threadWaitReason, long startAddress, long contextSwitches) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the contextSwitches.longGets the kernelTime.getName()Gets the name.intGets the owningProcessID.intGets the priority.longGets the startMemoryAddress.longGets the startTime.intGets the threadID.intGets the threadState.intGets the threadWaitReason.longGets the userTime.
-
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 namethreadID- the threadIDowningProcessID- the owningProcessIDstartTime- the startTimeuserTime- the userTimekernelTime- the kernelTimepriority- the prioritythreadState- the threadStatethreadWaitReason- the threadWaitReasonstartAddress- the startAddresscontextSwitches- the contextSwitches
-
-
Method Details
-
getName
-
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
-