Page 1 of 1

Documentation of memory debug feature?

Posted: Mon Jul 24, 2017 7:40 pm
by slcasner
I need to investigate some dynamic memory leaks. I see that menuconfig allows me to enable heap memory debug, but I have not found any documentation of how that debug feature works and how to use it. Is there anything available?

Re: Documentation of memory debug feature?

Posted: Mon Jul 24, 2017 8:15 pm
by Lucas.Hutchinson
Hi there,

I have found using this function quite useful in tracking down memory leaks.

Code: Select all

esp_get_free_heap_size()

Re: Documentation of memory debug feature?

Posted: Mon Jul 24, 2017 8:31 pm
by slcasner
Thanks for the suggestion. I have already added code to periodically display the size of free heap space. That's how I know memory is being leaked. Now I need to investigate where this is happening.

Re: Documentation of memory debug feature?

Posted: Wed Aug 18, 2021 2:36 pm
by NathanJPhillips