Class ThreadInfo.ThreadStats

  • Enclosing class:
    ThreadInfo

    @Immutable
    public static class ThreadInfo.ThreadStats
    extends java.lang.Object
    Class to encapsulate mach thread info
    • Field Detail

      • threadId

        private final int threadId
      • userTime

        private final long userTime
      • systemTime

        private final long systemTime
      • upTime

        private final long upTime
      • priority

        private final int priority
    • Constructor Detail

      • ThreadStats

        public ThreadStats​(int tid,
                           double cpu,
                           char state,
                           long sTime,
                           long uTime,
                           int pri)
    • Method Detail

      • 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
      • getPriority

        public int getPriority()
        Returns:
        the priority