#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_cpuload.hpp>
|
| | cpuLoad ()=delete |
| |
| | cpuLoad (std::string procFileName="/proc/stat") |
| | constructor
|
| |
| std::string | getCPUName (const std::string &cpuNameFile="/proc/cpuinfo") |
| | get CPU Description
|
| |
| std::tuple< uint64_t, uint64_t, uint64_t, uint64_t > | getCpuTimes () |
| | get Cpu user / nice / system /idle time.
|
| |
| double | getCurrentCpuUsage () |
| | get current cpu load in 0-100%
|
| |
| std::vector< double > | getCurrentMultiCoreUsage () |
| | get cpu Usage of all cores in percent
|
| |
| void | initCpuUsage () |
| | initialize the parsing algo
|
| |
- Author
- : Daniel Fuchs @contact: fuxey.nosp@m.solu.nosp@m.tions.nosp@m.@gma.nosp@m.il.co.nosp@m.m
distributed under the MIT License (MIT). Copyright (c) Daniel Fuchs
◆ cpuLoad() [1/2]
◆ cpuLoad() [2/2]
| cpuLoad |
( |
std::string | procFileName = "/proc/stat" | ) |
|
|
inlineexplicit |
◆ getCPUName()
| std::string getCPUName |
( |
const std::string & | cpuNameFile = "/proc/cpuinfo" | ) |
|
get CPU Description
- Parameters
-
| cpuNameFile | - typical /proc/cpuinfo |
- Returns
- cpu Type string
◆ getCpuTimes()
| std::tuple< uint64_t, uint64_t, uint64_t, uint64_t > getCpuTimes |
( |
| ) |
|
|
inline |
get Cpu user / nice / system /idle time.
used for cpu usage per process
- Returns
- tuple<user,nice,system,idle>
◆ getCurrentCpuUsage()
| double getCurrentCpuUsage |
( |
| ) |
|
get current cpu load in 0-100%
- Returns
- current cpu load
◆ getCurrentMultiCoreUsage()
| std::vector< double > getCurrentMultiCoreUsage |
( |
| ) |
|
get cpu Usage of all cores in percent
- Returns
- vector of cpu load per core 0-100%
◆ initCpuUsage()
initialize the parsing algo
The documentation for this class was generated from the following files:
- RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_cpuload.hpp
- RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_cpuload.cpp