Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mpu9250_i2c biquadFilter peakdetection Eigen
SystemReport Class Reference
System Reporting library. More...
#include <stats_report.h>
Public Member Functions | |
SystemReport (uint32_t sample_rate) | |
SystemReport - Sample rate in ms is required to handle the CPU percent awake logic. | |
void | report_state (void) |
Report on each Mbed OS Platform stats API. | |
void | report_cpu_stats (void) |
Report CPU idle and awake time in terms of percentage. | |
void | report_heap_stats (void) |
Report current heap stats. | |
void | report_thread_stats (void) |
Report active thread stats. |
Detailed Description
System Reporting library.
Provides runtime information on device:
- CPU sleep, idle, and wake times
- Heap and stack usage
- Thread information
- Static system information
Definition at line 19 of file stats_report.h.
Constructor & Destructor Documentation
SystemReport | ( | uint32_t | sample_rate ) |
SystemReport - Sample rate in ms is required to handle the CPU percent awake logic.
Definition at line 33 of file stats_report.h.
Member Function Documentation
void report_cpu_stats | ( | void | ) |
Report CPU idle and awake time in terms of percentage.
Definition at line 79 of file stats_report.h.
void report_heap_stats | ( | void | ) |
Report current heap stats.
Current heap refers to the current amount of allocated heap. Max heap refers to the highest amount of heap allocated since reset.
Definition at line 101 of file stats_report.h.
void report_state | ( | void | ) |
Report on each Mbed OS Platform stats API.
Definition at line 66 of file stats_report.h.
void report_thread_stats | ( | void | ) |
Report active thread stats.
Definition at line 115 of file stats_report.h.
Generated on Fri Jul 15 2022 08:38:42 by
