SD card file helloworld demo using new mbed RTOS ver 5 file driver setup. Pins setup for LPC1768 - read comment in code about project's json file requirements for adding the SD filesystem driver

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 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.