process-cpp
3.0.0
A simple convenience library for handling processes in C++11.
|
Go to the documentation of this file.
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());
long unsigned int major_faults_count
The number of major faults the process has made which have required loading a memory page from disk.
int tty_nr
The controlling terminal of the process.
int cpu_count
CPU number last executed on.
unsigned int realtime_priority
Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-tim...
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 channel
This is the "channel" in which the process is waiting. It is the address of a system call,...
long unsigned int user
Amount of time that this process has been scheduled in user mode, [clock ticks].
long unsigned int guest_time
Guest time of the process (time spent running a virtual CPU for a guest operating system),...
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 int thread_count
Number of threads in this process (since Linux 2.6).
long unsigned int major_faults_count_by_children
The number of major faults that the process's waited-for children have made.
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...
long unsigned int guest_time_children
Guest time of the process's children, measured in clock ticks.
long unsigned int swap_count
Number of pages swapped (not maintained).
The Stat struct encapsulates status information about a process.
long unsigned int virt
Virtual memory size in bytes.
long int start_time
The time the process started after system boot. In kernels before Linux 2.6, this value was expressed...
long unsigned int system_for_children
Amount of time that this process's waited-for children have been scheduled in kernel mode,...
struct core::posix::linux::proc::process::Stat::@0 time
long unsigned int end_code
The address below which program text can run.
long unsigned int start_code
The address above which program text can run.
long unsigned int system
Amount of time that this process has been scheduled in kernel mode, [clock ticks].
struct core::posix::linux::proc::process::Stat::@2 addresses
long unsigned int pending
The bitmap of pending signals, displayed as a decimal number. Obsolete, because it does not provide i...
long int nice
The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).
long unsigned int minor_faults_count_by_children
The number of minor faults that the process's waited-for children have made.
long unsigned int ignored
The bitmap of ignored signals, displayed as a decimal number. Obsolete, because it does not provide i...
State state
State of the process.
long unsigned int caught
The bitmap of caught signals, displayed as a decimal number. Obsolete, because it does not provide in...
pid_t process_group
The process group ID of the process.
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 minor_faults_count
The number of minor faults the process has made which have not required loading a memory page from di...
virtual pid_t pid() const
Query the pid of the process.
int session_id
The session ID of the process.
pid_t parent
The PID of the parent.
long unsigned int blocked
The bitmap of blocked signals, displayed as a decimal number. Obsolete, because it does not provide i...
unsigned int kernel_flags
The kernel flags word of the process.
const CORE_POSIX_DLL_PUBLIC posix::Process & operator>>(const posix::Process &process, OomAdj &adj)
Read the OomAdj value for a process instance.
struct core::posix::linux::proc::process::Stat::@1 size
struct core::posix::linux::proc::process::Stat::@3 signals
long unsigned int start_stack
The address of the start (i.e., bottom) of the stack.
long unsigned int swap_count_children
Cumulative nswap for child processes (not maintained).
std::string executable
The filename of the executable, in parentheses.
int exit_signal
Signal to be sent to parent when we die.
long unsigned int resident_set
Resident Set Size: number of pages the process has in real memory. This is just the pages which count...
long unsigned int instruction_pointer
The current EIP (instruction pointer).
long unsigned int user_for_children
Amount of time that this process's waited-for children have been scheduled in user mode,...
The Process class models a process and possible operations on it.
int controlling_process_group
The ID of the foreground process group of the controlling terminal of the process.