Garbage collection happens whenever Espruino thinks it is idle, but the memory usage reported by processs.memory will always be the usage after Garbage Collection.
If the memory is rising, it's probably some extra information getting stored. Maybe try running E.getSizeOf(global,2) before and after, and see if you can figure out where the amount of memory used is increasing.
It is possible it's a memory leak in Espruino, but those are extremely rare now - I haven't come across one in months.
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.
Garbage collection happens whenever Espruino thinks it is idle, but the memory usage reported by
processs.memory
will always be the usage after Garbage Collection.If the memory is rising, it's probably some extra information getting stored. Maybe try running
E.getSizeOf(global,2)
before and after, and see if you can figure out where the amount of memory used is increasing.It is possible it's a memory leak in Espruino, but those are extremely rare now - I haven't come across one in months.