Knight KE / Mbed OS Game_Master
Embed: (wiki syntax)

« Back to documentation index

stats functions

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 definition

Enumerator:
ARM 

ARM.

GCC_ARM 

GNU ARM.

IAR 

IAR.

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:
statsA pointer to the mbed_stats_cpu_t structure to fill

Definition at line 19 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:
statsA 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:
statsA pointer to the mbed_stats_stack_t structure to fill

Definition at line 32 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:
statsA pointer to an array of mbed_stats_stack_t structures to fill
countThe 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 60 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:
statsA pointer to the mbed_stats_sys_t structure to fill

Definition at line 120 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:
statsA pointer to an array of mbed_stats_thread_t structures to fill
countThe 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 91 of file mbed_stats.c.