|
OpenSDN source code
|
#include "sys/times.h"#include <cstdlib>#include <base/cpuinfo.h>#include <fstream>#include <iostream>
Go to the source code of this file.
Functions | |
| void | LoadAvg (CpuLoad &load) |
| uint32_t | NumCpus () |
| static void | ProcessCpuShare (double &percentage) |
| void | PopulateProcessCpuInfo (const CpuLoadInfo &cpu_load_info, ProcessCpuInfo *pinfo) |
Variables | |
| static clock_t | snapshot |
| static clock_t | prev_sys_cpu |
| static clock_t | prev_user_cpu |
| void LoadAvg | ( | CpuLoad & | load | ) |
| uint32_t NumCpus | ( | ) |
Definition at line 18 of file cpuinfo.cc.
| void PopulateProcessCpuInfo | ( | const CpuLoadInfo & | cpu_load_info, |
| ProcessCpuInfo * | pinfo | ||
| ) |
|
static |
|
static |
Definition at line 15 of file cpuinfo_common.cc.
|
static |
Definition at line 15 of file cpuinfo_common.cc.
|
static |
Definition at line 15 of file cpuinfo_common.cc.