Mbed OS Reference
Loading...
Searching...
No Matches
mbed_stats_heap_t Struct Reference

struct mbed_stats_heap_t definition More...

#include <mbed_stats.h>

Data Fields

uint32_t current_size
 Bytes currently allocated on the heap. More...
 
uint32_t max_size
 Maximum bytes allocated on the heap at one time since reset. More...
 
uint32_t total_size
 Cumulative sum of bytes allocated on the heap that have not been freed. More...
 
uint32_t reserved_size
 Current number of bytes reserved for the heap. More...
 
uint32_t alloc_cnt
 Current number of allocations that have not been freed since reset. More...
 
uint32_t alloc_fail_cnt
 Number of failed allocations since reset. More...
 
uint32_t overhead_size
 Number of bytes used to store heap statistics. More...
 

Detailed Description

struct mbed_stats_heap_t definition

Definition at line 61 of file mbed_stats.h.

Field Documentation

◆ current_size

uint32_t current_size

Bytes currently allocated on the heap.

Definition at line 62 of file mbed_stats.h.

◆ max_size

uint32_t max_size

Maximum bytes allocated on the heap at one time since reset.

Definition at line 63 of file mbed_stats.h.

◆ total_size

uint32_t total_size

Cumulative sum of bytes allocated on the heap that have not been freed.

Definition at line 64 of file mbed_stats.h.

◆ reserved_size

uint32_t reserved_size

Current number of bytes reserved for the heap.

Definition at line 65 of file mbed_stats.h.

◆ alloc_cnt

uint32_t alloc_cnt

Current number of allocations that have not been freed since reset.

Definition at line 66 of file mbed_stats.h.

◆ alloc_fail_cnt

uint32_t alloc_fail_cnt

Number of failed allocations since reset.

Definition at line 67 of file mbed_stats.h.

◆ overhead_size

uint32_t overhead_size

Number of bytes used to store heap statistics.

This overhead takes up space on the heap, reducing the available heap space

Definition at line 68 of file mbed_stats.h.