A class to get the system (platform) status such as available memory, storage, CPU load and etc. More...
#include <yarp/os/SystemInfo.h>
Classes | |
struct | LoadInfo |
The LoadInfo struct holds the current cpu load information. More... | |
struct | MemoryInfo |
The MemoryInfo struct holds the system memory information. More... | |
struct | PlatformInfo |
The PlatformInfo struct holds the operating system information. More... | |
struct | ProcessInfo |
The ProcessInfo struct provides the operating system process information. More... | |
struct | ProcessorInfo |
The ProcessorInfo struct holds the processor information. More... | |
struct | StorageInfo |
The StorageInfo struct holds the system storage information. More... | |
struct | UserInfo |
The UserInfo struct holds the current user information. More... | |
Public Types | |
typedef int | capacity_t |
typedef struct yarp::os::SystemInfo::MemoryInfo | MemoryInfo |
The MemoryInfo struct holds the system memory information. More... | |
typedef struct yarp::os::SystemInfo::StorageInfo | StorageInfo |
The StorageInfo struct holds the system storage information. More... | |
typedef struct yarp::os::SystemInfo::ProcessorInfo | ProcessorInfo |
The ProcessorInfo struct holds the processor information. More... | |
typedef struct yarp::os::SystemInfo::LoadInfo | LoadInfo |
The LoadInfo struct holds the current cpu load information. More... | |
typedef struct yarp::os::SystemInfo::PlatformInfo | PlatformInfo |
The PlatformInfo struct holds the operating system information. More... | |
typedef struct yarp::os::SystemInfo::UserInfo | UserInfo |
The UserInfo struct holds the current user information. More... | |
typedef struct yarp::os::SystemInfo::ProcessInfo | ProcessInfo |
The ProcessInfo struct provides the operating system process information. More... | |
Static Public Member Functions | |
static MemoryInfo | getMemoryInfo () |
getMemoryInfo More... | |
static StorageInfo | getStorageInfo () |
getStorageInfo More... | |
static ProcessorInfo | getProcessorInfo () |
getProcessorInfo More... | |
static PlatformInfo | getPlatformInfo () |
getPlatformInfo More... | |
static LoadInfo | getLoadInfo () |
getLoadInfo More... | |
static UserInfo | getUserInfo () |
getUserInfo More... | |
static ProcessInfo | getProcessInfo (int pid=0) |
gets the operating system process information given by its PID. More... | |
A class to get the system (platform) status such as available memory, storage, CPU load and etc.
Definition at line 28 of file SystemInfo.h.
typedef int yarp::os::SystemInfo::capacity_t |
Definition at line 31 of file SystemInfo.h.
typedef struct yarp::os::SystemInfo::LoadInfo yarp::os::SystemInfo::LoadInfo |
The LoadInfo struct holds the current cpu load information.
typedef struct yarp::os::SystemInfo::MemoryInfo yarp::os::SystemInfo::MemoryInfo |
The MemoryInfo struct holds the system memory information.
The PlatformInfo struct holds the operating system information.
The ProcessInfo struct provides the operating system process information.
The ProcessorInfo struct holds the processor information.
The StorageInfo struct holds the system storage information.
typedef struct yarp::os::SystemInfo::UserInfo yarp::os::SystemInfo::UserInfo |
The UserInfo struct holds the current user information.
|
static |
getLoadInfo
Definition at line 754 of file SystemInfo.cpp.
|
static |
getMemoryInfo
Definition at line 258 of file SystemInfo.cpp.
|
static |
getPlatformInfo
Definition at line 600 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 808 of file SystemInfo.cpp.
|
static |
getProcessorInfo
Definition at line 451 of file SystemInfo.cpp.
|
static |
getStorageInfo
Definition at line 318 of file SystemInfo.cpp.
|
static |
getUserInfo
Definition at line 723 of file SystemInfo.cpp.