39 char c; in >> c; state =
static_cast<State>(c);
95 std::stringstream ss; ss <<
"/proc/" << process.
pid() <<
"/stat";
96 std::ifstream in(ss.str());
int session_id
The session ID of the process.
pid_t parent
The PID of the parent.
std::string executable
The filename of the executable, in parentheses.
State state
State of the process.
long unsigned int start_code
The address above which program text can run.
int exit_signal
Signal to be sent to parent when we die.
long unsigned int guest_time
Guest time of the process (time spent running a virtual CPU for a guest operating system)...
long unsigned int pending
The bitmap of pending signals, displayed as a decimal number. Obsolete, because it does not provide i...
The Process class models a process and possible operations on it.
unsigned int scheduling_policy
Scheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in linux/sched...
long long unsigned int aggregated_block_io_delays
Aggregated block I/O delays, measured in clock ticks (centiseconds).
long unsigned int major_faults_count
The number of major faults the process has made which have required loading a memory page from disk...
The Stat struct encapsulates status information about a process.
struct core::posix::linux::proc::process::Stat::@3 signals
long unsigned int ignored
The bitmap of ignored signals, displayed as a decimal number. Obsolete, because it does not provide i...
long unsigned int swap_count_children
Cumulative nswap for child processes (not maintained).
long unsigned int swap_count
Number of pages swapped (not maintained).
CORE_POSIX_DLL_PUBLIC const posix::Process & operator>>(const posix::Process &process, OomAdj &adj)
Read the OomAdj value for a process instance.
long int thread_count
Number of threads in this process (since Linux 2.6).
long unsigned int system
Amount of time that this process has been scheduled in kernel mode, [clock ticks].
long unsigned int blocked
The bitmap of blocked signals, displayed as a decimal number. Obsolete, because it does not provide i...
pid_t process_group
The process group ID of the process.
long unsigned int guest_time_children
Guest time of the process's children, measured in clock ticks.
long unsigned int major_faults_count_by_children
The number of major faults that the process's waited-for children have made.
unsigned int kernel_flags
The kernel flags word of the process.
long unsigned int user
Amount of time that this process has been scheduled in user mode, [clock ticks].
long int nice
The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority)...
long unsigned int virt
Virtual memory size in bytes.
long unsigned int minor_faults_count_by_children
The number of minor faults that the process's waited-for children have made.
virtual pid_t pid() const
Query the pid of the process.
long unsigned int user_for_children
Amount of time that this process's waited-for children have been scheduled in user mode...
struct core::posix::linux::proc::process::Stat::@0 time
long unsigned int instruction_pointer
The current EIP (instruction pointer).
long unsigned int system_for_children
Amount of time that this process's waited-for children have been scheduled in kernel mode...
long unsigned int caught
The bitmap of caught signals, displayed as a decimal number. Obsolete, because it does not provide in...
int cpu_count
CPU number last executed on.
struct core::posix::linux::proc::process::Stat::@2 addresses
long unsigned int start_stack
The address of the start (i.e., bottom) of the stack.
long int start_time
The time the process started after system boot. In kernels before Linux 2.6, this value was expressed...
int tty_nr
The controlling terminal of the process.
long unsigned int end_code
The address below which program text can run.
long unsigned int resident_set
Resident Set Size: number of pages the process has in real memory. This is just the pages which count...
int controlling_process_group
The ID of the foreground process group of the controlling terminal of the process.
unsigned int realtime_priority
Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-tim...
struct core::posix::linux::proc::process::Stat::@1 size
long unsigned int channel
This is the "channel" in which the process is waiting. It is the address of a system call...
long unsigned int minor_faults_count
The number of minor faults the process has made which have not required loading a memory page from di...
long int time_before_next_sig_alarm
The time in jiffies before the next SIGALRM is sent to the process due to an interval timer...
long unsigned int stack_pointer
The current value of ESP (stack pointer), as found in the kernel stack page for the process...
long unsigned int resident_set_limit
Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit...