process-cpp 3.0.0
A simple convenience library for handling processes in C++11.
|
Classes | |
struct | OomAdj |
struct | OomScore |
struct | OomScoreAdj |
struct | Stat |
The Stat struct encapsulates status information about a process. More... | |
Enumerations | |
enum class | State { undefined = -1 , running = 'R' , sleeping = 'S' , disk_sleep = 'D' , zombie = 'Z' , traced_or_stopped = 'T' , paging = 'W' } |
const posix::Process & core::posix::linux::proc::process::operator<< | ( | const posix::Process & | process, |
const OomAdj & | adj ) |
Write the OomAdj value for a process instance.
std::runtime_error | in case of errors and std::logic_error if score_adj.is_valid() returns false. |
[in] | process | The process to write the score for. |
[in] | adj | The new value to store. |
Definition at line 65 of file oom_adj.cpp.
References core::posix::Process::pid().
const posix::Process & core::posix::linux::proc::process::operator<< | ( | const posix::Process & | process, |
const OomScoreAdj & | score_adj ) |
Write the OomScoreAdj value for a process instance.
std::runtime_error | in case of errors and std::logic_error if score_adj.is_valid() returns false. |
[in] | process | The process to write the score for. |
[in] | score_adj | The new value to store. |
Definition at line 60 of file oom_score_adj.cpp.
References core::posix::Process::pid().
const posix::Process & core::posix::linux::proc::process::operator>> | ( | const posix::Process & | process, |
OomAdj & | adj ) |
Read the OomAdj value for a process instance.
std::runtime_error | in case of errors. |
[in] | process | The process to read the score for. |
[out] | adj | The destination to store the value in. |
Definition at line 55 of file oom_adj.cpp.
References core::posix::Process::pid().
const posix::Process & core::posix::linux::proc::process::operator>> | ( | const posix::Process & | process, |
OomScore & | score ) |
Read the OomScore for a process instance.
std::runtime_error | in case of errors. |
[in] | process | The process to read the score for. |
[out] | score | The destination to store the value in. |
Definition at line 36 of file oom_score.cpp.
References core::posix::Process::pid().
const posix::Process & core::posix::linux::proc::process::operator>> | ( | const posix::Process & | process, |
OomScoreAdj & | score_adj ) |
Read the OomScoreAdj value for a process instance.
std::runtime_error | in case of errors. |
[in] | process | The process to read the score for. |
[out] | score_adj | The destination to store the value in. |
Definition at line 50 of file oom_score_adj.cpp.
References core::posix::Process::pid().
const posix::Process & core::posix::linux::proc::process::operator>> | ( | const posix::Process & | process, |
Stat & | stat ) |
Definition at line 93 of file stat.cpp.
References core::posix::Process::pid().
std::istream & core::posix::linux::proc::process::operator>> | ( | std::istream & | in, |
Stat & | stat ) |
Definition at line 43 of file stat.cpp.
References core::posix::Process::pid().