Class ThreadInfo.ThreadStats

java.lang.Object
oshi.driver.common.mac.ThreadInfo.ThreadStats
Enclosing class:
ThreadInfo

@Immutable public static class ThreadInfo.ThreadStats extends Object
Class to encapsulate mach thread info
  • 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 ID
      cpu - the CPU usage percentage
      state - the thread state character
      sTime - the system time
      uTime - the user time
      pri - 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

      public OSProcess.State getState()
      Gets the state.
      Returns:
      the state
    • getPriority

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