2532

Dependencies:   QEI WS2812 PixelArray DFPlayerMini MODSERIAL PCA9685_ pca9685

Embed: (wiki syntax)

« Back to documentation index

SystemReport Class Reference

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 18 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 32 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 78 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 100 of file stats_report.h.

void report_state ( void   )

Report on each Mbed OS Platform stats API.

Definition at line 65 of file stats_report.h.

void report_thread_stats ( void   )

Report active thread stats.

Definition at line 114 of file stats_report.h.