![]() |
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. More... | |
| SystemResourcesStatus | getCpuTicks (CpuTicks &ticks, U32 cpu_index=0) |
| Get the CPU tick information for a given CPU. More... | |
| SystemResourcesStatus | getMemUtil (MemUtil &memory_util) |
| Calculate the across-all-cpu average tick information. More... | |
| 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 | ) |
Calculate the across-all-cpu average tick information.
See getCpuTicks. Operates in a similar capacity, but the aggregation is done across all CPUs not for a specific CPU.
| ticks | (output) filled with the tick information for the given CPU |
Definition at line 31 of file SystemResources.cpp.