Lua memory (de)allocation tracer: (#5191)
commitf0f3e35bf6323599ae18a0c9f9b88fea988de02f
authorDamjan Adamic <projectkk2glider@gmail.com>
Sat, 11 Nov 2017 08:41:05 +0000 (11 09:41 +0100)
committerBertrand Songis <bsongis@gmail.com>
Sat, 11 Nov 2017 08:41:05 +0000 (11 09:41 +0100)
tree7202aab68dce1e621fc713c05a4ef48be766cdcd
parentc30ff28f850ebc6aded4229184dbfef2f27ae3bc
Lua memory (de)allocation tracer: (#5191)

* Lua memory (de)allocation tracer:

Usage:
 * turn on: `cmake -DLUA=YES -DLUA_ALLOCATOR_TRACER=YES -DDEBUG=YES -DNANO=NO`
 * get debug output and make plot data: `./simu 2>&1 | grep "^LT" | ../radio/util/lua_trace2plot.py > data.plot`
 * plot: `gnuplot  -e 'set xtics rotate;  plot "data.plot" using 2:xtic(1) ; pause mouse close'`

* Changes based on Bertrand comments
radio/src/CMakeLists.txt
radio/src/lua/interface.cpp
radio/src/lua/lua_api.h
radio/src/lua/widgets.cpp
radio/src/targets/common/arm/stm32/CMakeLists.txt
radio/util/lua_trace2plot.py [new file with mode: 0755]