linuxProcessLoad Class Reference

#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/linux_process_load.hpp>

Public Member Functions

std::map< std::string, double > getProcessCpuLoad ()
 get a map of [pid] which contains the cpu load between two calls. More...
 

Detailed Description

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

Definition at line 18 of file linux_process_load.hpp.

Member Function Documentation

◆ getProcessCpuLoad()

std::map< std::string, double > getProcessCpuLoad ( )

get a map of [pid] which contains the cpu load between two calls.

function needs to be called regularly (e.g.: 5s.) to get the cpu load per process

Returns
const map[pid][cpuload]

Definition at line 73 of file linux_process_load.cpp.


The documentation for this class was generated from the following files: