linux_process_info.h
Go to the documentation of this file.
1 // Provides process information on linux systems
2 // Author: Max Schwarz <max.schwarz@uni-bonn.de>
3 
4 #ifndef LINUX_PROCESS_INFO_H
5 #define LINUX_PROCESS_INFO_H
6 
7 #include <cstddef>
8 
9 namespace rosmon
10 {
11 namespace monitor
12 {
13 namespace process_info
14 {
15 
21 typedef unsigned long jiffies_t;
22 
24 jiffies_t kernel_hz();
25 
27 std::size_t page_size();
28 
33 {
34  unsigned long pid;
35  unsigned long pgrp;
36  jiffies_t utime;
37  jiffies_t stime;
38  std::size_t mem_rss;
39 };
40 
48 bool readStatFile(const char* filename, ProcessStat* stat);
49 
50 }
51 }
52 }
53 
54 #endif
jiffies_t stime
Total time spent in kernel space.
bool readStatFile(const char *filename, ProcessStat *stat)
std::size_t page_size()
Kernel page size.
unsigned long jiffies_t
A time value counted in kernel jiffies.
jiffies_t utime
Total time spent in userspace.
jiffies_t kernel_hz()
Number of kernel jiffies per second.
std::size_t mem_rss
Resident memory size in bytes.
unsigned long pgrp
Process group ID.


rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43