|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Classes | |
| struct | block |
| Information about a single heap block, passed to walk callbacks. More... | |
| struct | info |
| Heap region statistics. More... | |
| struct | region |
| Information about a heap region, passed to walk callbacks. More... | |
Enumerations | |
| enum class | capabilities : uint32_t { capabilities::access_32bit = MALLOC_CAP_32BIT , capabilities::access_8bit = MALLOC_CAP_8BIT , capabilities::dma = MALLOC_CAP_DMA , capabilities::spiram = MALLOC_CAP_SPIRAM , capabilities::internal = MALLOC_CAP_INTERNAL , capabilities::default_heap = MALLOC_CAP_DEFAULT , capabilities::iram = MALLOC_CAP_IRAM_8BIT , capabilities::retention = MALLOC_CAP_RETENTION , capabilities::rtc = MALLOC_CAP_RTCRAM , capabilities::dma_desc_ahb = MALLOC_CAP_DMA_DESC_AHB , capabilities::dma_desc_axi = MALLOC_CAP_DMA_DESC_AXI , capabilities::cache_aligned = MALLOC_CAP_CACHE_ALIGNED , capabilities::dram = internal | access_8bit } |
| Memory capability flags for heap allocations. More... | |
Functions | |
| size_t | total_size (flags< capabilities > c) noexcept |
| Returns the total size of heap regions matching the given capabilities. | |
| size_t | free_size (flags< capabilities > c) noexcept |
| Returns the current free size of heap regions matching the given capabilities. | |
| size_t | largest_free_block (flags< capabilities > c) noexcept |
| Returns the largest free block in heap regions matching the given capabilities. | |
| size_t | minimum_free_size (flags< capabilities > c) noexcept |
| Returns the minimum free size since boot for heap regions matching the given capabilities. | |
| info | get_info (flags< capabilities > c) noexcept |
| Returns detailed heap statistics for regions matching the given capabilities. | |
| template<typename F > | |
| void | walk (flags< capabilities > c, F &&walker) |
| Walk all heap blocks in regions matching the given capabilities. | |
| template<typename F > | |
| void | walk (F &&walker) |
| Walk all heap blocks across all heaps. | |
| bool | check_integrity (flags< capabilities > c, bool print_errors=false) noexcept |
| Check integrity of heaps with the given capabilities, or all heaps. | |
| bool | check_integrity (bool print_errors=false) noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | dump (flags< capabilities > c) noexcept |
| Dump the structure of heaps with matching capabilities, or all heaps. | |
| void | dump () noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |