F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Classes | |
struct | CpuTicks |
struct | MemUtil |
Enumerations | |
enum | SystemResourcesStatus { SYSTEM_RESOURCES_OK , SYSTEM_RESOURCES_ERROR } |
Functions | |
SystemResourcesStatus | getCpuCount (U32 &cpu_count) |
Request the count of the CPUs detected by the system. | |
SystemResourcesStatus | getCpuTicks (CpuTicks &ticks, U32 cpu_index=0) |
Get the CPU tick information for a given CPU. | |
SystemResourcesStatus | getMemUtil (MemUtil &memory_util) |
Get system memory usage. | |
Enumerator | |
---|---|
SYSTEM_RESOURCES_OK | Call was successful. |
SYSTEM_RESOURCES_ERROR | Call failed. |
Definition at line 20 of file SystemResources.hpp.
SystemResources::SystemResourcesStatus Os::SystemResources::getCpuCount | ( | U32 & | cpu_count | ) |
Request the count of the CPUs detected by the system.
cpu_count | (output) filled with CPU count on system |
Definition at line 17 of file SystemResources.cpp.
SystemResources::SystemResourcesStatus Os::SystemResources::getCpuTicks | ( | CpuTicks & | ticks, |
U32 | cpu_index = 0 |
||
) |
Get the CPU tick information for a given CPU.
CPU ticks represent a small time slice of processor time. This will retrieve the used CPU ticks and total ticks for a given CPU. This information in a running accumulation and thus a sample-to-sample differencing is needed to see the 'realtime' changing load. This shall be done by the caller.
ticks | (output) filled with the tick information for the given CPU |
cpu_index | index for CPU to read |
Definition at line 23 of file SystemResources.cpp.
SystemResources::SystemResourcesStatus Os::SystemResources::getMemUtil | ( | MemUtil & | memory_util | ) |
Get system memory usage.
memory_util | (output) data structure used to store memory usage |
Definition at line 31 of file SystemResources.cpp.