#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_memoryload.hpp>
- 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
◆ memoryLoad()
| memoryLoad |
( |
std::string | memInfo = "/proc/meminfo", |
|
|
std::string | memInfoOfProcess = "/proc/self/status", |
|
|
std::string | memInfoOfProcessPrefix = "/proc/self/" ) |
|
inlineexplicit |
◆ getCurrentMemUsageInKB()
| uint64_t getCurrentMemUsageInKB |
( |
| ) |
|
get current Memory Usage of the system in KB
- Returns
- used memory in KB
◆ getCurrentMemUsageInPercent()
| float getCurrentMemUsageInPercent |
( |
| ) |
|
get current memory usage of the system in percent 0-100%
- Returns
- 0-100%
◆ getMemoryUsageByThisProcess()
| uint64_t getMemoryUsageByThisProcess |
( |
| ) |
|
get memory usage of this process (self)
- Returns
- memory usage in KB
◆ getMemoryUsedByProcess()
| uint64_t getMemoryUsedByProcess |
( |
int | pid | ) |
|
|
static |
get the current memory usage of a process
- Parameters
-
- Returns
- memory usage in KB
◆ getTotalMemoryInKB()
| uint64_t getTotalMemoryInKB |
( |
| ) |
|
get total memory of the system in KB
- Returns
- total memory in KB
The documentation for this class was generated from the following files: