Package oshi.driver.linux.proc
Enum ProcessStat.PidStat
- All Implemented Interfaces:
- Serializable,- Comparable<ProcessStat.PidStat>
- Enclosing class:
- ProcessStat
Enum corresponding to the fields in the output of 
/proc/[pid]/stat- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAddress below program command-line arguments (argv) are placed.Address above which program command-line arguments (argv) are placed.The bitmap of blocked signals, displayed as a decimal number.Guest time of the process's children, measured in clock ticks.The number of major faults that the process's waited-for children have made.The number of minor faults that the process's waited-for children have made.Cumulative nswap for child processes (not maintained).The filename of the executable.Amount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks.Amount of time that this process's waited-for children have been scheduled in user mode, measured in clock ticks.Aggregated block I/O delays, measured in clock ticks (centiseconds).Address below which program initialized and uninitialized (BSS) data are placed.The address below which program text can run.Address below which program environment is placed.Address above which program environment is placed.The thread's exit status in the form reported by waitpid(2).Signal to be sent to parent when we die.The kernel flags word of the process.Guest time of the process (time spent running a vir‐ tual CPU for a guest operating system), measured in clock ticks.The time in jiffies before the next SIGALRM is sent to the process due to an interval timer.The current EIP (instruction pointer).The current value of ESP (stack pointer), as found in the kernel stack page for the process.The number of major faults the process has made which have required loading a memory page from disk.The number of minor faults the process has made which have not required loading a memory page from disk.The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).Number of pages swapped (not maintained).Number of threads in this process.The process group ID of the process.The process ID.Scheduling policy (see sched_setscheduler(2)).The PID of the parent of this process.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.CPU number last executed on.The ID of the foreground process group of the controlling terminal of the process.Resident Set Size: number of pages the process has in real memory.Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2).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)).The session ID of the process.The bitmap of caught signals, displayed as a decimal number.The bitmap of ignored signals, displayed as a decimal number.The bitmap of pending signals, displayed as a decimal number.Address above which program heap can be expanded with brk(2).Address above which program initialized and uninitialized (BSS) data are placed.The address above which program text can run.The address of the start (i.e., bottom) of the stack.The time the process started after system boot, in clock ticks.One of the following characters, indicating process state:Amount of time that this process has been scheduled in kernel mode, measured in clock ticks.The controlling terminal of the process.Amount of time that this process has been scheduled in user mode, measured in clock ticks.Virtual memory size in bytes.This is the "channel" in which the process is waiting.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ProcessStat.PidStatReturns 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- 
PIDThe process ID.
- 
COMMThe filename of the executable.
- 
STATEOne 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) 
- 
PPIDThe PID of the parent of this process.
- 
PGRPThe process group ID of the process.
- 
SESSIONThe session ID of the process.
- 
TTY_NRThe 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.)
- 
PTGIDThe ID of the foreground process group of the controlling terminal of the process.
- 
FLAGSThe 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.
- 
MINFLTThe number of minor faults the process has made which have not required loading a memory page from disk.
- 
CMINFLTThe number of minor faults that the process's waited-for children have made.
- 
MAJFLTThe number of major faults the process has made which have required loading a memory page from disk.
- 
CMAJFLTThe number of major faults that the process's waited-for children have made.
- 
UTIMEAmount 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.
- 
STIMEAmount of time that this process has been scheduled in kernel mode, measured in clock ticks.
- 
CUTIMEAmount 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).
- 
CSTIMEAmount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks.
- 
PRIORITYFor 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.
- 
NICEThe nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).
- 
NUM_THREADSNumber of threads in this process.
- 
ITREALVALUEThe 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.
- 
STARTTIMEThe time the process started after system boot, in clock ticks.
- 
VSIZEVirtual memory size in bytes.
- 
RSSResident 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.
- 
RSSLIMCurrent soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2).
- 
STARTCODEThe address above which program text can run.
- 
ENDCODEThe address below which program text can run.
- 
STARTSTACKThe address of the start (i.e., bottom) of the stack.
- 
KSTKESPThe current value of ESP (stack pointer), as found in the kernel stack page for the process.
- 
KSTKEIPThe current EIP (instruction pointer).
- 
SIGNALThe 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.
- 
BLOCKEDThe 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.
- 
SIGIGNOREThe 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.
- 
SIGCATCHThe 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.
- 
WCHANThis 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.
- 
NSWAPNumber of pages swapped (not maintained).
- 
CNSWAPCumulative nswap for child processes (not maintained).
- 
EXIT_SIGNALSignal to be sent to parent when we die.
- 
PROCESSORCPU number last executed on.
- 
RT_PRIORITYReal-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)).
- 
POLICYScheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in linux/sched.h.
- 
DELAYACCT_BLKIO_TICKSAggregated block I/O delays, measured in clock ticks (centiseconds).
- 
GUEST_TIMEGuest time of the process (time spent running a vir‐ tual CPU for a guest operating system), measured in clock ticks.
- 
CGUEST_TIMEGuest time of the process's children, measured in clock ticks.
- 
START_DATAAddress above which program initialized and uninitialized (BSS) data are placed.
- 
END_DATAAddress below which program initialized and uninitialized (BSS) data are placed.
- 
START_BRKAddress above which program heap can be expanded with brk(2).
- 
ARG_STARTAddress above which program command-line arguments (argv) are placed.
- 
ARG_ENDAddress below program command-line arguments (argv) are placed.
- 
ENV_STARTAddress above which program environment is placed.
- 
ENV_ENDAddress below which program environment is placed.
- 
EXIT_CODEThe thread's exit status in the form reported by waitpid(2).
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-