picofuse

Data Fields
hw_memory_usage_t Struct Reference

Snapshot of active memory use. More...

#include <picofuse/hw.h>

Data Fields

size_t ram_total_bytes
 Total primary SRAM capacity.
 
size_t ram_free_bytes
 Primary SRAM available for heap growth.
 
size_t heap_used_bytes
 C allocator high-water usage in primary SRAM.
 
size_t psram_used_bytes
 Active PSRAM allocation bytes.
 
size_t stack_total_bytes
 Current core's reserved stack capacity.
 
size_t stack_used_bytes
 Current core's active stack bytes.
 
size_t stack_free_bytes
 Current core's remaining stack capacity.
 
size_t flash_total_bytes
 Physical flash capacity.
 
size_t flash_used_bytes
 Exact linked program image size in flash.
 
size_t flash_reserved_bytes
 Flash reserved by active block devices.
 
size_t flash_free_bytes
 Sector-usable flash after image and reservations.
 

Detailed Description

Snapshot of active memory use.

Unsupported regions are reported as zero. On Pico, RAM fields describe primary SRAM, where globals, static data, and the heap reside; stack fields describe the current core's separate scratch-SRAM stack.

Definition at line 32 of file memory.h.


The documentation for this struct was generated from the following file: