The easiest way to check memory is to run process.memory() - it gives you the number of variables that are used.
process.memory()
As far as not running onInit - I'd afraid there is nothing built-in, so as Manxome says you'd have to put something at the start of it.
@Gordon started
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.
The easiest way to check memory is to run
process.memory()
- it gives you the number of variables that are used.As far as not running onInit - I'd afraid there is nothing built-in, so as Manxome says you'd have to put something at the start of it.