|
#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_memoryload.hpp>
Public Member Functions | |
uint64_t | getCurrentMemUsageInKB () |
get current Memory Usage of the system in KB More... | |
float | getCurrentMemUsageInPercent () |
get current memory usage of the system in percent 0-100% More... | |
uint64_t | getMemoryUsageByThisProcess () |
get memory usage of this process (self) More... | |
uint64_t | getTotalMemoryInKB () |
get total memory of the system in KB More... | |
memoryLoad (std::string memInfo="/proc/meminfo", std::string memInfoOfProcess="/proc/self/status", std::string memInfoOfProcessPrefix="/proc/self/") | |
Static Public Member Functions | |
static uint64_t | getMemoryUsedByProcess (int pid) |
get the current memory usage of a process More... | |
distributed under the MIT License (MIT). Copyright (c) Daniel Fuchs
Definition at line 14 of file linux_memoryload.hpp.
|
inlineexplicit |
Definition at line 16 of file linux_memoryload.hpp.
uint64_t getCurrentMemUsageInKB | ( | ) |
get current Memory Usage of the system in KB
Definition at line 39 of file linux_memoryload.cpp.
float getCurrentMemUsageInPercent | ( | ) |
get current memory usage of the system in percent 0-100%
Definition at line 44 of file linux_memoryload.cpp.
uint64_t getMemoryUsageByThisProcess | ( | ) |
get memory usage of this process (self)
Definition at line 50 of file linux_memoryload.cpp.
|
static |
get the current memory usage of a process
pid | - process id |
Definition at line 54 of file linux_memoryload.cpp.
uint64_t getTotalMemoryInKB | ( | ) |
get total memory of the system in KB
Definition at line 34 of file linux_memoryload.cpp.