Package oshi.driver.mac
Class ThreadInfo.ThreadStats
java.lang.Object
oshi.driver.mac.ThreadInfo.ThreadStats
- Enclosing class:
ThreadInfo
Class to encapsulate mach thread info
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final OSProcess.State
private final long
private final int
private final long
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionThreadStats
(int tid, double cpu, char state, long sTime, long uTime, int pri) -
Method Summary
-
Field Details
-
threadId
private final int threadId -
userTime
private final long userTime -
systemTime
private final long systemTime -
upTime
private final long upTime -
state
-
priority
private final int priority
-
-
Constructor Details
-
ThreadStats
public ThreadStats(int tid, double cpu, char state, long sTime, long uTime, int pri)
-
-
Method Details
-
getThreadId
public int getThreadId()- Returns:
- the threadId
-
getUserTime
public long getUserTime()- Returns:
- the userTime
-
getSystemTime
public long getSystemTime()- Returns:
- the systemTime
-
getUpTime
public long getUpTime()- Returns:
- the upTime
-
getState
- Returns:
- the state
-
getPriority
public int getPriority()- Returns:
- the priority
-