Enum ProcessStat.PidStat

java.lang.Object
java.lang.Enum<ProcessStat.PidStat>
oshi.driver.linux.proc.ProcessStat.PidStat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ProcessStat.PidStat>, java.lang.constant.Constable
Enclosing class:
ProcessStat

public static enum ProcessStat.PidStat
extends java.lang.Enum<ProcessStat.PidStat>
Enum corresponding to the fields in the output of /proc/[pid]/stat
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    ARG_END
    Address below program command-line arguments (argv) are placed.
    ARG_START
    Address above which program command-line arguments (argv) are placed.
    BLOCKED
    The bitmap of blocked signals, displayed as a decimal number.
    CGUEST_TIME
    Guest time of the process's children, measured in clock ticks.
    CMAJFLT
    The number of major faults that the process's waited-for children have made.
    CMINFLT
    The number of minor faults that the process's waited-for children have made.
    CNSWAP
    Cumulative nswap for child processes (not maintained).
    COMM
    The filename of the executable.
    CSTIME
    Amount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks.
    CUTIME
    Amount of time that this process's waited-for children have been scheduled in user mode, measured in clock ticks.
    DELAYACCT_BLKIO_TICKS
    Aggregated block I/O delays, measured in clock ticks (centiseconds).
    END_DATA
    Address below which program initialized and uninitialized (BSS) data are placed.
    ENDCODE
    The address below which program text can run.
    ENV_END
    Address below which program environment is placed.
    ENV_START
    Address above which program environment is placed.
    EXIT_CODE
    The thread's exit status in the form reported by waitpid(2).
    EXIT_SIGNAL
    Signal to be sent to parent when we die.
    FLAGS
    The kernel flags word of the process.
    GUEST_TIME
    Guest time of the process (time spent running a vir‐ tual CPU for a guest operating system), measured in clock ticks.
    ITREALVALUE
    The time in jiffies before the next SIGALRM is sent to the process due to an interval timer.
    KSTKEIP
    The current EIP (instruction pointer).
    KSTKESP
    The current value of ESP (stack pointer), as found in the kernel stack page for the process.
    MAJFLT
    The number of major faults the process has made which have required loading a memory page from disk.
    MINFLT
    The number of minor faults the process has made which have not required loading a memory page from disk.
    NICE
    The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).
    NSWAP
    Number of pages swapped (not maintained).
    NUM_THREADS
    Number of threads in this process.
    PGRP
    The process group ID of the process.
    PID
    The process ID.
    POLICY
    Scheduling policy (see sched_setscheduler(2)).
    PPID
    The PID of the parent of this process.
    PRIORITY
    For processes running a real-time scheduling policy (policy below; see sched_setscheduler(2)), this is the negated scheduling priority, minus one; that is, a number in the range -2 to -100, corresponding to real-time priorities 1 to 99.
    PROCESSOR
    CPU number last executed on.
    PTGID
    The ID of the foreground process group of the controlling terminal of the process.
    RSS
    Resident Set Size: number of pages the process has in real memory.
    RSSLIM
    Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2).
    RT_PRIORITY
    Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-time policy, or 0, for non-real-time processes (see sched_setscheduler(2)).
    SESSION
    The session ID of the process.
    SIGCATCH
    The bitmap of caught signals, displayed as a decimal number.
    SIGIGNORE
    The bitmap of ignored signals, displayed as a decimal number.
    SIGNAL
    The bitmap of pending signals, displayed as a decimal number.
    START_BRK
    Address above which program heap can be expanded with brk(2).
    START_DATA
    Address above which program initialized and uninitialized (BSS) data are placed.
    STARTCODE
    The address above which program text can run.
    STARTSTACK
    The address of the start (i.e., bottom) of the stack.
    STARTTIME
    The time the process started after system boot, in clock ticks.
    STATE
    One of the following characters, indicating process state:
    STIME
    Amount of time that this process has been scheduled in kernel mode, measured in clock ticks.
    TTY_NR
    The controlling terminal of the process.
    UTIME
    Amount of time that this process has been scheduled in user mode, measured in clock ticks.
    VSIZE
    Virtual memory size in bytes.
    WCHAN
    This is the "channel" in which the process is waiting.
  • Method Summary

    Modifier and Type Method Description
    static ProcessStat.PidStat valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ProcessStat.PidStat[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PID

      public static final ProcessStat.PidStat PID
      The process ID.
    • COMM

      public static final ProcessStat.PidStat COMM
      The filename of the executable.
    • STATE

      public static final ProcessStat.PidStat STATE
      One of the following characters, indicating process state:

      R Running

      S Sleeping in an interruptible wait

      D Waiting in uninterruptible disk sleep

      Z Zombie

      T Stopped (on a signal) or (before Linux 2.6.33) trace stopped

      t Tracing stop (Linux 2.6.33 onward)

      W Paging (only before Linux 2.6.0)

      X Dead (from Linux 2.6.0 onward)

      x Dead (Linux 2.6.33 to 3.13 only)

      K Wakekill (Linux 2.6.33 to 3.13 only)

      W Waking (Linux 2.6.33 to 3.13 only)

      P Parked (Linux 3.9 to 3.13 only)

    • PPID

      public static final ProcessStat.PidStat PPID
      The PID of the parent of this process.
    • PGRP

      public static final ProcessStat.PidStat PGRP
      The process group ID of the process.
    • SESSION

      public static final ProcessStat.PidStat SESSION
      The session ID of the process.
    • TTY_NR

      public static final ProcessStat.PidStat TTY_NR
      The controlling terminal of the process. (The minor device number is contained in the combination of bits 31 to 20 and 7 to 0; the major device number is in bits 15 to 8.)
    • PTGID

      public static final ProcessStat.PidStat PTGID
      The ID of the foreground process group of the controlling terminal of the process.
    • FLAGS

      public static final ProcessStat.PidStat FLAGS
      The kernel flags word of the process. For bit meanings, see the PF_* defines in the Linux kernel source file include/linux/sched.h. Details depend on the kernel version.
    • MINFLT

      public static final ProcessStat.PidStat MINFLT
      The number of minor faults the process has made which have not required loading a memory page from disk.
    • CMINFLT

      public static final ProcessStat.PidStat CMINFLT
      The number of minor faults that the process's waited-for children have made.
    • MAJFLT

      public static final ProcessStat.PidStat MAJFLT
      The number of major faults the process has made which have required loading a memory page from disk.
    • CMAJFLT

      public static final ProcessStat.PidStat CMAJFLT
      The number of major faults that the process's waited-for children have made.
    • UTIME

      public static final ProcessStat.PidStat UTIME
      Amount of time that this process has been scheduled in user mode, measured in clock ticks. This includes guest time, cguest_time (time spent running a virtual CPU), so that applications that are not aware of the guest time field do not lose that time from their calculations.
    • STIME

      public static final ProcessStat.PidStat STIME
      Amount of time that this process has been scheduled in kernel mode, measured in clock ticks.
    • CUTIME

      public static final ProcessStat.PidStat CUTIME
      Amount of time that this process's waited-for children have been scheduled in user mode, measured in clock ticks. This includes guest time, cguest_time (time spent running a virtual CPU).
    • CSTIME

      public static final ProcessStat.PidStat CSTIME
      Amount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks.
    • PRIORITY

      public static final ProcessStat.PidStat PRIORITY
      For processes running a real-time scheduling policy (policy below; see sched_setscheduler(2)), this is the negated scheduling priority, minus one; that is, a number in the range -2 to -100, corresponding to real-time priorities 1 to 99. For processes running under a non-real-time scheduling policy, this is the raw nice value (setpriority(2)) as represented in the kernel. The kernel stores nice values as numbers in the range 0 (high) to 39 (low), corresponding to the user-visible nice range of -20 to 19.
    • NICE

      public static final ProcessStat.PidStat NICE
      The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).
    • NUM_THREADS

      public static final ProcessStat.PidStat NUM_THREADS
      Number of threads in this process.
    • ITREALVALUE

      public static final ProcessStat.PidStat ITREALVALUE
      The time in jiffies before the next SIGALRM is sent to the process due to an interval timer. Since ker‐nel 2.6.17, this field is no longer maintained, and is hard coded as 0.
    • STARTTIME

      public static final ProcessStat.PidStat STARTTIME
      The time the process started after system boot, in clock ticks.
    • VSIZE

      public static final ProcessStat.PidStat VSIZE
      Virtual memory size in bytes.
    • RSS

      public static final ProcessStat.PidStat RSS
      Resident Set Size: number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out.
    • RSSLIM

      public static final ProcessStat.PidStat RSSLIM
      Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2).
    • STARTCODE

      public static final ProcessStat.PidStat STARTCODE
      The address above which program text can run.
    • ENDCODE

      public static final ProcessStat.PidStat ENDCODE
      The address below which program text can run.
    • STARTSTACK

      public static final ProcessStat.PidStat STARTSTACK
      The address of the start (i.e., bottom) of the stack.
    • KSTKESP

      public static final ProcessStat.PidStat KSTKESP
      The current value of ESP (stack pointer), as found in the kernel stack page for the process.
    • KSTKEIP

      public static final ProcessStat.PidStat KSTKEIP
      The current EIP (instruction pointer).
    • SIGNAL

      public static final ProcessStat.PidStat SIGNAL
      The bitmap of pending signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead.
    • BLOCKED

      public static final ProcessStat.PidStat BLOCKED
      The bitmap of blocked signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead.
    • SIGIGNORE

      public static final ProcessStat.PidStat SIGIGNORE
      The bitmap of ignored signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead.
    • SIGCATCH

      public static final ProcessStat.PidStat SIGCATCH
      The bitmap of caught signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead.
    • WCHAN

      public static final ProcessStat.PidStat WCHAN
      This is the "channel" in which the process is waiting. It is the address of a location in the kernel where the process is sleeping. The corresponding symbolic name can be found in /proc/[pid]/wchan.
    • NSWAP

      public static final ProcessStat.PidStat NSWAP
      Number of pages swapped (not maintained).
    • CNSWAP

      public static final ProcessStat.PidStat CNSWAP
      Cumulative nswap for child processes (not maintained).
    • EXIT_SIGNAL

      public static final ProcessStat.PidStat EXIT_SIGNAL
      Signal to be sent to parent when we die.
    • PROCESSOR

      public static final ProcessStat.PidStat PROCESSOR
      CPU number last executed on.
    • RT_PRIORITY

      public static final ProcessStat.PidStat RT_PRIORITY
      Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-time policy, or 0, for non-real-time processes (see sched_setscheduler(2)).
    • POLICY

      public static final ProcessStat.PidStat POLICY
      Scheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in linux/sched.h.
    • DELAYACCT_BLKIO_TICKS

      public static final ProcessStat.PidStat DELAYACCT_BLKIO_TICKS
      Aggregated block I/O delays, measured in clock ticks (centiseconds).
    • GUEST_TIME

      public static final ProcessStat.PidStat GUEST_TIME
      Guest time of the process (time spent running a vir‐ tual CPU for a guest operating system), measured in clock ticks.
    • CGUEST_TIME

      public static final ProcessStat.PidStat CGUEST_TIME
      Guest time of the process's children, measured in clock ticks.
    • START_DATA

      public static final ProcessStat.PidStat START_DATA
      Address above which program initialized and uninitialized (BSS) data are placed.
    • END_DATA

      public static final ProcessStat.PidStat END_DATA
      Address below which program initialized and uninitialized (BSS) data are placed.
    • START_BRK

      public static final ProcessStat.PidStat START_BRK
      Address above which program heap can be expanded with brk(2).
    • ARG_START

      public static final ProcessStat.PidStat ARG_START
      Address above which program command-line arguments (argv) are placed.
    • ARG_END

      public static final ProcessStat.PidStat ARG_END
      Address below program command-line arguments (argv) are placed.
    • ENV_START

      public static final ProcessStat.PidStat ENV_START
      Address above which program environment is placed.
    • ENV_END

      public static final ProcessStat.PidStat ENV_END
      Address below which program environment is placed.
    • EXIT_CODE

      public static final ProcessStat.PidStat EXIT_CODE
      The thread's exit status in the form reported by waitpid(2).
  • Method Details

    • values

      public static ProcessStat.PidStat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ProcessStat.PidStat valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null