I don't find how I can get the peak RAM usage of the program without putting process.memory() on every step
That's what you'd have to do I'm afraid - there's no way to get peak RAM usage without doing that. It's a bit tricky to get a solid figure for that because of garbage collection.
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's what you'd have to do I'm afraid - there's no way to get peak RAM usage without doing that. It's a bit tricky to get a solid figure for that because of garbage collection.