21 #include "hal/ticker_api.h" 35 #ifdef MBED_ALL_STATS_ENABLED 37 #ifndef MBED_SYS_STATS_ENABLED 38 #define MBED_SYS_STATS_ENABLED 1 40 #ifndef MBED_STACK_STATS_ENABLED 41 #define MBED_STACK_STATS_ENABLED 1 43 #ifndef MBED_CPU_STATS_ENABLED 44 #define MBED_CPU_STATS_ENABLED 1 46 #ifndef MBED_HEAP_STATS_ENABLED 47 #define MBED_HEAP_STATS_ENABLED 1 49 #ifndef MBED_THREAD_STATS_ENABLED 50 #define MBED_THREAD_STATS_ENABLED 1 53 #endif // MBED_ALL_STATS_ENABLED 56 #define MBED_MAX_MEM_REGIONS 4 uint32_t stack_size
Current number of bytes reserved for the stack.
struct mbed_stats_thread_t definition
uint32_t priority
Priority of the thread (higher number indicates higher priority)
mbed_compiler_id_t compiler_id
Compiler ID mbed_compiler_id_t.
uint32_t alloc_fail_cnt
Number of failed allocations since reset.
struct mbed_stats_sys_t definition
uint32_t cpu_id
CPUID register data (Cortex-M only supported)
uint32_t id
ID of the thread.
us_timestamp_t sleep_time
Time spent in sleep since the system has started.
struct mbed_stats_heap_t definition
uint64_t us_timestamp_t
A us timestamp stored in a 64 bit integer.
uint32_t reserved_size
Current number of bytes reserved for the heap.
uint32_t stack_space
Current number of free bytes remaining on the stack.
uint32_t os_version
Mbed OS version (populated only for tagged releases)
uint32_t thread_id
Identifier for the thread that owns the stack or 0 if representing accumulated statistics.
us_timestamp_t deep_sleep_time
Time spent in deep sleep since the system has started.
us_timestamp_t uptime
Time since the system has started.
const char * name
Name of the thread.
struct mbed_stats_stack_t definition
uint32_t alloc_cnt
Current number of allocations that have not been freed since reset.
uint32_t state
State of the thread.
uint32_t compiler_version
Compiler version.
uint32_t total_size
Cumulative sum of bytes allocated on the heap that have not been freed.
uint32_t max_size
Maximum bytes allocated on the heap at one time since reset.
uint32_t stack_cnt
The number of stacks represented in the accumulated statistics or 1 if representing a single stack...
us_timestamp_t idle_time
Time spent in the idle thread since the system has started.
uint32_t max_size
Maximum number of bytes used on the stack since the thread was started.
uint32_t current_size
Bytes currently allocated on the heap.
uint32_t overhead_size
Number of bytes used to store heap statistics.
uint32_t reserved_size
Current number of bytes reserved for the stack.
struct mbed_stats_cpu_t definition