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.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
stats functions
[Platform]
Data Structures | |
struct | mbed_stats_heap_t |
struct mbed_stats_heap_t definition More... | |
struct | mbed_stats_stack_t |
struct mbed_stats_stack_t definition More... | |
struct | mbed_stats_cpu_t |
struct mbed_stats_cpu_t definition More... | |
struct | mbed_stats_thread_t |
struct mbed_stats_thread_t definition More... | |
struct | mbed_stats_sys_t |
struct mbed_stats_sys_t definition More... | |
Enumerations | |
enum | mbed_compiler_id_t { ARM = 1, GCC_ARM, IAR } |
enum mbed_compiler_id_t definition More... | |
Functions | |
void | mbed_stats_heap_get (mbed_stats_heap_t *stats) |
Fill the passed in heap stat structure with the heap statistics. | |
void | mbed_stats_stack_get (mbed_stats_stack_t *stats) |
Fill the passed in structure with stack statistics accumulated for all threads. | |
size_t | mbed_stats_stack_get_each (mbed_stats_stack_t *stats, size_t count) |
Fill the passed array of structures with the stack statistics for each available thread. | |
void | mbed_stats_cpu_get (mbed_stats_cpu_t *stats) |
Fill the passed in CPU stat structure with CPU statistics. | |
size_t | mbed_stats_thread_get_each (mbed_stats_thread_t *stats, size_t count) |
Fill the passed array of stat structures with the thread statistics for each available thread. | |
void | mbed_stats_sys_get (mbed_stats_sys_t *stats) |
Fill the passed in system stat structure with system statistics. |
Enumeration Type Documentation
enum mbed_compiler_id_t |
enum mbed_compiler_id_t definition
Definition at line 150 of file mbed_stats.h.
Function Documentation
void mbed_stats_cpu_get | ( | mbed_stats_cpu_t * | stats ) |
Fill the passed in CPU stat structure with CPU statistics.
- Parameters:
-
stats A pointer to the mbed_stats_cpu_t structure to fill
Definition at line 35 of file mbed_stats.c.
void mbed_stats_heap_get | ( | mbed_stats_heap_t * | stats ) |
Fill the passed in heap stat structure with the heap statistics.
- Parameters:
-
stats A pointer to the mbed_stats_heap_t structure to fill
Definition at line 64 of file mbed_alloc_wrappers.cpp.
void mbed_stats_stack_get | ( | mbed_stats_stack_t * | stats ) |
Fill the passed in structure with stack statistics accumulated for all threads.
The thread_id will be 0 and stack_cnt will represent number of threads.
- Parameters:
-
stats A pointer to the mbed_stats_stack_t structure to fill
Definition at line 48 of file mbed_stats.c.
size_t mbed_stats_stack_get_each | ( | mbed_stats_stack_t * | stats, |
size_t | count | ||
) |
Fill the passed array of structures with the stack statistics for each available thread.
- Parameters:
-
stats A pointer to an array of mbed_stats_stack_t structures to fill count The number of mbed_stats_stack_t structures in the provided array
- Returns:
- The number of mbed_stats_stack_t structures that have been filled. If the number of stacks on the system is less than or equal to count, it will equal the number of stacks on the system. If the number of stacks on the system is greater than count, it will equal count.
Definition at line 79 of file mbed_stats.c.
void mbed_stats_sys_get | ( | mbed_stats_sys_t * | stats ) |
Fill the passed in system stat structure with system statistics.
- Parameters:
-
stats A pointer to the mbed_stats_sys_t structure to fill
Definition at line 142 of file mbed_stats.c.
size_t mbed_stats_thread_get_each | ( | mbed_stats_thread_t * | stats, |
size_t | count | ||
) |
Fill the passed array of stat structures with the thread statistics for each available thread.
- Parameters:
-
stats A pointer to an array of mbed_stats_thread_t structures to fill count The number of mbed_stats_thread_t structures in the provided array
- Returns:
- The number of mbed_stats_thread_t structures that have been filled. If the number of threads on the system is less than or equal to count, it will equal the number of threads on the system. If the number of threads on the system is greater than count, it will equal count.
Definition at line 113 of file mbed_stats.c.
Generated on Tue Jul 12 2022 13:55:26 by
