How to track memory allocated by extmem_malloc?

Sam Halvoe

Active member
Is it possible to track memory allocated by extmem_malloc?
I have allocated 1024 bytes with EXTMEM and 1024 bytes with extmem_malloc in setup, but I only get 1024 from "_extram_end - _extram_start".
Thanks for hints in advance. :)
 
#include <smalloc.h> and use sm_malloc_stats_pool() (with &extmem_smalloc_pool as the first argument) to get the number of total, used and free bytes of dynamic extmem.
 
Back
Top