Helper class to get CPU statistic.
More...
#include <dabc/statistic.h>
Helper class to get CPU statistic.
Definition at line 33 of file statistic.h.
◆ CpuStatistic()
dabc::CpuStatistic::CpuStatistic |
( |
bool |
withmem = false | ) |
|
◆ ~CpuStatistic()
dabc::CpuStatistic::~CpuStatistic |
( |
| ) |
|
|
virtual |
◆ Measure()
bool dabc::CpuStatistic::Measure |
( |
| ) |
|
◆ Reset()
bool dabc::CpuStatistic::Reset |
( |
| ) |
|
◆ NumCPUs()
unsigned dabc::CpuStatistic::NumCPUs |
( |
| ) |
const |
|
inline |
◆ CPUutil()
double dabc::CpuStatistic::CPUutil |
( |
unsigned |
n = 0 | ) |
const |
|
inline |
◆ UserUtil()
double dabc::CpuStatistic::UserUtil |
( |
unsigned |
n = 0 | ) |
const |
|
inline |
◆ SysUtil()
double dabc::CpuStatistic::SysUtil |
( |
unsigned |
n = 0 | ) |
const |
|
inline |
◆ GetVmSize()
long unsigned dabc::CpuStatistic::GetVmSize |
( |
| ) |
const |
|
inline |
◆ GetVmPeak()
long unsigned dabc::CpuStatistic::GetVmPeak |
( |
| ) |
const |
|
inline |
◆ GetNumThreads()
long unsigned dabc::CpuStatistic::GetNumThreads |
( |
| ) |
const |
|
inline |
◆ GetProcVirtMem()
long dabc::CpuStatistic::GetProcVirtMem |
( |
| ) |
|
|
static |
◆ fStatFp
FILE* dabc::CpuStatistic::fStatFp |
|
protected |
◆ fProcStatFp
FILE* dabc::CpuStatistic::fProcStatFp |
|
protected |
◆ fCPUs
std::vector<SingleCpu> dabc::CpuStatistic::fCPUs |
|
protected |
◆ fVmSize
long unsigned dabc::CpuStatistic::fVmSize |
|
protected |
◆ fVmPeak
long unsigned dabc::CpuStatistic::fVmPeak |
|
protected |
◆ fNumThreads
long unsigned dabc::CpuStatistic::fNumThreads |
|
protected |
The documentation for this class was generated from the following files: