Initial commit
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 heap stats. | |
| void | mbed_stats_stack_get (mbed_stats_stack_t *stats) |
| Fill the passed in structure with stack stats accumulated for all threads. | |
| size_t | mbed_stats_stack_get_each (mbed_stats_stack_t *stats, size_t count) |
| Fill the passed array of stat structures with the stack stats 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 stats for each available thread. | |
| void | mbed_stats_sys_get (mbed_stats_sys_t *stats) |
| Fill the passed in sys stat structure with system stats. | |
Enumeration Type Documentation
| enum mbed_compiler_id_t |
enum mbed_compiler_id_t definition
Definition at line 130 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 20 of file mbed_stats.c.
| void mbed_stats_heap_get | ( | mbed_stats_heap_t * | stats ) |
Fill the passed in heap stat structure with heap stats.
- Parameters:
-
stats A pointer to the mbed_stats_heap_t structure to fill
Definition at line 54 of file mbed_alloc_wrappers.cpp.
| void mbed_stats_stack_get | ( | mbed_stats_stack_t * | stats ) |
Fill the passed in structure with stack stats 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 33 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 stat structures with the stack stats 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, this is equal to the number of stacks on the system.
Definition at line 61 of file mbed_stats.c.
| void mbed_stats_sys_get | ( | mbed_stats_sys_t * | stats ) |
Fill the passed in sys stat structure with system stats.
- Parameters:
-
stats A pointer to the mbed_stats_sys_t structure to fill
Definition at line 121 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 stats 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, this is equal to the number of threads on the system.
Definition at line 92 of file mbed_stats.c.
Generated on Tue Jul 12 2022 13:53:16 by
1.7.2