38 std::stringstream ss; ss <<
"/proc/" << process.
pid() <<
"/oom_score";
39 std::ifstream in(ss.str());
The Process class models a process and possible operations on it.
CORE_POSIX_DLL_PUBLIC const posix::Process & operator>>(const posix::Process &process, OomAdj &adj)
Read the OomAdj value for a process instance.
virtual pid_t pid() const
Query the pid of the process.
int value
Current OomScore as calculated by the kernel.