|
#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_cpuload.hpp>
Public Member Functions | |
cpuLoad ()=delete | |
cpuLoad (std::string procFileName="/proc/stat") | |
constructor More... | |
std::string | getCPUName (const std::string &cpuNameFile="/proc/cpuinfo") |
get CPU Description More... | |
std::tuple< uint64_t, uint64_t, uint64_t, uint64_t > | getCpuTimes () |
get Cpu user / nice / system /idle time. More... | |
double | getCurrentCpuUsage () |
get current cpu load in 0-100% More... | |
std::vector< double > | getCurrentMultiCoreUsage () |
get cpu Usage of all cores in percent More... | |
void | initCpuUsage () |
initialize the parsing algo More... | |
distributed under the MIT License (MIT). Copyright (c) Daniel Fuchs
Definition at line 18 of file linux_cpuload.hpp.
|
delete |
|
inlineexplicit |
std::string getCPUName | ( | const std::string & | cpuNameFile = "/proc/cpuinfo" | ) |
get CPU Description
cpuNameFile | - typical /proc/cpuinfo |
Definition at line 131 of file linux_cpuload.cpp.
|
inline |
get Cpu user / nice / system /idle time.
used for cpu usage per process
Definition at line 43 of file linux_cpuload.hpp.
double getCurrentCpuUsage | ( | ) |
get current cpu load in 0-100%
Definition at line 47 of file linux_cpuload.cpp.
std::vector< double > getCurrentMultiCoreUsage | ( | ) |
get cpu Usage of all cores in percent
Definition at line 53 of file linux_cpuload.cpp.
void initCpuUsage | ( | ) |
initialize the parsing algo
Definition at line 29 of file linux_cpuload.cpp.