Hi all!
I'm running a simple esp32 program which reports free heap and min free heap (no real need but I liked that).
What I found is that at a certain point the min_free_heap went from about 1.82kb to about 62.5kb while the total free heap remained the same.
I'm getting the values using ESP.getFreeHeap() and ESP.getMinFreeHeap().
Can someone please explain why does the min free heap increased? I tought this could not happen.
Does esp32 has garbage collection?
Does esp32 has garbage collection?
- Attachments
-
- Screenshot 2024-04-05 at 19-06-54 ML0006 - Dashboards - Grafana.png (71.68 KiB) Viewed 1476 times
Re: Does esp32 has garbage collection?
It's possible that earlier in the program execution, the free heap dropped significantly lower than 62.5kb, and that was recorded as the min_free_heap value at that time. Then, as the program continued to run and memory was freed up, the min_free_heap value was not updated because the minimum threshold was never breached again.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Who is online
Users browsing this forum: No registered users and 57 guests