You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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.

About

Avatar for Gordon @Gordon started