Add feature embed and specify sources to be embedded with embed_source
bld.new_task_gen(features = 'cxx cprogram embed', embed_source = 'data/test.embed', ...)
In your .cpp-file add the following symbols:
extern unsigned char TEST_EMBED[];
extern uint32_t TEST_EMBED_SIZE;
The symbol is the filename without path. Dots are replaced with underscore.
Run dmengine_memprofile.sh instead of dmengine.
To enable tracing where every allocation is written to disk for analaysis:
# DMMEMPROFILE_TRACE=1 dmengine_memprofile.sh
Create a trace report using memprofile.sh
memprofile.sh `which dmengine` memprofile.trace > report.html