Package oshi.driver.linux.proc
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
-
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.
-
Enum Constant Details
-
PID
The process ID. -
COMM
The filename of the executable. -
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
The PID of the parent of this process. -
PGRP
The process group ID of the process. -
SESSION
The session ID of the process. -
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
The ID of the foreground process group of the controlling terminal of the process. -
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
The number of minor faults the process has made which have not required loading a memory page from disk. -
CMINFLT
The number of minor faults that the process's waited-for children have made. -
MAJFLT
The number of major faults the process has made which have required loading a memory page from disk. -
CMAJFLT
The number of major faults that the process's waited-for children have made. -
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
Amount of time that this process has 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. This includes guest time, cguest_time (time spent running a virtual CPU). -
CSTIME
Amount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks. -
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
The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority). -
NUM_THREADS
Number of threads in this process. -
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
The time the process started after system boot, in clock ticks. -
VSIZE
Virtual memory size in bytes. -
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
Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2). -
STARTCODE
The address above which program text can run. -
ENDCODE
The address below which program text can run. -
STARTSTACK
The address of the start (i.e., bottom) of the stack. -
KSTKESP
The current value of ESP (stack pointer), as found in the kernel stack page for the process. -
KSTKEIP
The current EIP (instruction pointer). -
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
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
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
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
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
Number of pages swapped (not maintained). -
CNSWAP
Cumulative nswap for child processes (not maintained). -
EXIT_SIGNAL
Signal to be sent to parent when we die. -
PROCESSOR
CPU number last executed on. -
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
Scheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in linux/sched.h. -
DELAYACCT_BLKIO_TICKS
Aggregated block I/O delays, measured in clock ticks (centiseconds). -
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
Guest time of the process's children, measured in clock ticks. -
START_DATA
Address above which program initialized and uninitialized (BSS) data are placed. -
END_DATA
Address below which program initialized and uninitialized (BSS) data are placed. -
START_BRK
Address above which program heap can be expanded with brk(2). -
ARG_START
Address above which program command-line arguments (argv) are placed. -
ARG_END
Address below program command-line arguments (argv) are placed. -
ENV_START
Address above which program environment is placed. -
ENV_END
Address below which program environment is placed. -
EXIT_CODE
The thread's exit status in the form reported by waitpid(2).
-
-
Method Details
-
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
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 namejava.lang.NullPointerException
- if the argument is null
-