Get micropython.mem_info() data into a string #13257
-
Hey, I would like to monitor the memory usage of my program, and a good way to do that would be to have the free memory and max free size. I can see those using mem_info, but I couldnt find a way to log that information to a file or something like that. Is it posible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ok, I did this:
|
Beta Was this translation helpful? Give feedback.
-
Also note that, depending on the port ESP32 , mem_free does only report the memory allocated to micropython. RTOS may have additional memory that is not yet visible to micropython See https://docs.micropython.org/en/latest/library/esp32.html#esp32.idf_heap_info |
Beta Was this translation helpful? Give feedback.
Ok, I did this: