when writing to console in (IDE) disconnected case, a buffer will fill up and Espruino will eventually freeze
That doesn't happen if you're disconnected from USB, so you're ok...
The best thing to do is to use E.getSizeOf(global, 2) which will drill down into your datastructures and will tell you how much memory each one uses. You can then call it, do some stuff that eats up your memory, and then call it again and compare the result.
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.
That doesn't happen if you're disconnected from USB, so you're ok...
The best thing to do is to use
E.getSizeOf(global, 2)
which will drill down into your datastructures and will tell you how much memory each one uses. You can then call it, do some stuff that eats up your memory, and then call it again and compare the result.