Classes | |
struct | ProcessStat |
Typedefs | |
typedef unsigned long | jiffies_t |
A time value counted in kernel jiffies. More... | |
Functions | |
jiffies_t | kernel_hz () |
Number of kernel jiffies per second. More... | |
std::size_t | page_size () |
Kernel page size. More... | |
bool | readStatFile (const char *filename, ProcessStat *stat) |
Variables | |
static jiffies_t | g_kernel_hz = -1 |
static std::size_t | g_page_size = -1 |
typedef unsigned long rosmon::monitor::process_info::jiffies_t |
A time value counted in kernel jiffies.
Definition at line 21 of file linux_process_info.h.
jiffies_t rosmon::monitor::process_info::kernel_hz | ( | ) |
Number of kernel jiffies per second.
Definition at line 22 of file linux_process_info.cpp.
std::size_t rosmon::monitor::process_info::page_size | ( | ) |
Kernel page size.
Definition at line 39 of file linux_process_info.cpp.
bool rosmon::monitor::process_info::readStatFile | ( | const char * | filename, |
ProcessStat * | stat | ||
) |
Read process state from /proc/<pid>/stat
filename | Filename of the stat file (e.g. "/proc/1234/stat") |
stat | Output struct |
Definition at line 54 of file linux_process_info.cpp.
|
static |
Definition at line 19 of file linux_process_info.cpp.
|
static |
Definition at line 20 of file linux_process_info.cpp.