X Tutup
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

File embedding

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.

Memory profiling

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

The log file memprofile.trace is written in the current directory.

Create a trace report using memprofile.sh

memprofile.sh `which dmengine` memprofile.trace > report.html
X Tutup