A class to get the system (platform) status such as available memory, storage, CPU load and etc. More...
#include <yarp/os/SystemInfo.h>
Inheritance diagram for yarp::os::SystemInfo:Static Public Member Functions | |
| static MemoryInfo | getMemoryInfo () |
| getMemoryInfo | |
| static StorageInfo | getStorageInfo () |
| getStorageInfo | |
| static ProcessorInfo | getProcessorInfo () |
| getProcessorInfo | |
| static PlatformInfo | getPlatformInfo () |
| getPlatformInfo | |
| static LoadInfo | getLoadInfo () |
| getLoadInfo | |
| static UserInfo | getUserInfo () |
| getUserInfo | |
| static ProcessInfo | getProcessInfo (int pid=0) |
| gets the operating system process information given by its PID. | |
Static Public Member Functions inherited from yarp::os::Portable | |
| static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
| Copy one portable to another, via writing and reading. | |
Additional Inherited Members | |
Public Attributes inherited from yarp::os::SystemInfoData | |
| MemoryInfoData | memory {} |
| StorageInfoData | storage {} |
| ProcessorInfoData | processor {} |
| LoadInfoData | load {} |
| PlatformInfoData | platform {} |
| UserInfoData | user {} |
| ProcessInfoData | process {} |
A class to get the system (platform) status such as available memory, storage, CPU load and etc.
Definition at line 24 of file SystemInfo.h.
Definition at line 30 of file SystemInfo.h.
Definition at line 35 of file SystemInfo.h.
Definition at line 32 of file SystemInfo.h.
Definition at line 36 of file SystemInfo.h.
Definition at line 31 of file SystemInfo.h.
Definition at line 34 of file SystemInfo.h.
Definition at line 33 of file SystemInfo.h.
Definition at line 37 of file SystemInfo.h.
|
static |
getLoadInfo
Definition at line 778 of file SystemInfo.cpp.
|
static |
getMemoryInfo
Definition at line 255 of file SystemInfo.cpp.
|
static |
getPlatformInfo
Definition at line 620 of file SystemInfo.cpp.
|
static |
gets the operating system process information given by its PID.
If the information cannot be retrieved, ProcessInfo.pid is set to -1 otherwise, it is equal to the given PID as parameter.
| pid | the process (task) PID, or 0 for current process |
Definition at line 832 of file SystemInfo.cpp.
|
static |
getProcessorInfo
Definition at line 448 of file SystemInfo.cpp.
|
static |
getStorageInfo
Definition at line 315 of file SystemInfo.cpp.
|
static |
getUserInfo
Definition at line 747 of file SystemInfo.cpp.
|
overridevirtual |
reads from a ConnectionReader and fill into the SystemInfo structs.
| connection | a ConnectionReader |
Implements yarp::os::Portable.
Definition at line 609 of file SystemInfo.cpp.
| void SystemInfo::updateSystemInfo | ( | ) |
updates the system information by calling the static methods to retrieve the latest data.
Definition at line 596 of file SystemInfo.cpp.
|
overridevirtual |
write the SystemInfo structs using a ConnectionWriter.
| connection | a ConnectionWriter |
Implements yarp::os::Portable.
Definition at line 614 of file SystemInfo.cpp.