Class ThreadInfo.ThreadStats
java.lang.Object
oshi.driver.common.mac.ThreadInfo.ThreadStats
- Enclosing class:
ThreadInfo
Class to encapsulate mach thread info
-
Constructor Summary
ConstructorsConstructorDescriptionThreadStats(int tid, double cpu, char state, long sTime, long uTime, int pri) Creates a ThreadStats instance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the priority.getState()Gets the state.longGets the systemTime.intGets the threadId.longGets the upTime.longGets the userTime.
-
Constructor Details
-
ThreadStats
public ThreadStats(int tid, double cpu, char state, long sTime, long uTime, int pri) Creates a ThreadStats instance.- Parameters:
tid- the thread IDcpu- the CPU usage percentagestate- the thread state charactersTime- the system timeuTime- the user timepri- the priority
-
-
Method Details
-
getThreadId
public int getThreadId()Gets the threadId.- Returns:
- the threadId
-
getUserTime
public long getUserTime()Gets the userTime.- Returns:
- the userTime
-
getSystemTime
public long getSystemTime()Gets the systemTime.- Returns:
- the systemTime
-
getUpTime
public long getUpTime()Gets the upTime.- Returns:
- the upTime
-
getState
-
getPriority
public int getPriority()Gets the priority.- Returns:
- the priority
-