there is also a builtin debugger, try to run debugger;, it can single step your code and print command can evaluate anything between steps so I guess some plugin in webIDE could script that and log 'print process.memory().used' after every step. So it could be done without changing your code but would be slow to run it like that.
Good idea! I tried debugger; with print manually. Looks like a good way. Will try some plugins or modifying the debugger code later to test on larger programs :D
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
there is also a builtin debugger, try to run
debugger;
, it can single step your code andprint
command can evaluate anything between steps so I guess some plugin in webIDE could script that and log 'print process.memory().used' after every step. So it could be done without changing your code but would be slow to run it like that.