#include <ArSystemStatus.h>
This class is only implemented for Linux; on Windows you will get invalid information.
Static Public Member Functions | |
static double | getCPU () |
static double | getCPUPercent () |
static std::string | getCPUPercentAsString () |
Get CPU percentage in a string. | |
static ArRetFunctor< double > * | getCPUPercentFunctor () |
static unsigned long | getUptime () |
Get total system uptime (seconds). | |
static double | getUptimeHours () |
Get total system uptime (hours). | |
static std::string | getUptimeHoursAsString () |
Get total system uptime in a string (hours). | |
static ArRetFunctor< double > * | getUptimeHoursFunctor () |
static int | getWirelessDiscardedPackets () |
static int | getWirelessDiscardedPacketsBecauseNetConflict () |
static int | getWirelessLinkNoise () |
static ArRetFunctor< int > * | getWirelessLinkNoiseFunctor () |
static int | getWirelessLinkQuality () |
static ArRetFunctor< int > * | getWirelessLinkQualityFunctor () |
static int | getWirelessLinkSignal () |
static ArRetFunctor< int > * | getWirelessLinkSignalFunctor () |
static void | invalidate () |
static void | refresh () |
static void | runRefreshThread (int refreshFrequency=5000) |
static void | startPeriodicUpdate (int refreshFrequency=5000) |
static void | stopPeriodicUpdate () |
|
Get CPU work to idle ratio since last refresh. This is a value ranging from (0 .. 1) X (Num. CPUs). (Therefore if you have two CPUs, the maximum value will be 2.0, or 200%.) This value is calculated as the percentage of time the CPU spent doing work (not in "idle" state) since the previous calculation.
|
|
Get CPU usage as percentage since last refresh. This is a value ranging from (0..100) X (Num. CPUs). (Therefore if you have two CPUs, the maximum value will be 200%).
|
|
|
|
|
|
Get wireless network total discarded packets (for first configured wireless device). |
|
Get wireless network packets discarded because of a conflict with another network (for first configured wireless device). |
|
Get wireless network noise level (for first configured wireless device). |
|
Get wireless network general link quality heuristic (for first configured wireless device). |
|
Get wireless netork signal level (for first configured wireless device). |
|
|
|
|
|
Create a new thread which periodically invalidates cached data, causing it to be recalculated when next accessed. Use this if you will be accessing the data too frequently to require it to be recacluted on each access. |
|
Stop periodic update thread. Henceforth any access of data will cause it to be re-read and recalculated. |