Documentation of memory debug feature?

slcasner
Posts: 17
Joined: Tue Dec 06, 2016 8:08 pm

Documentation of memory debug feature?

Postby slcasner » Mon Jul 24, 2017 7:40 pm

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?

Lucas.Hutchinson
Posts: 79
Joined: Tue Apr 26, 2016 5:10 am

Re: Documentation of memory debug feature?

Postby Lucas.Hutchinson » Mon Jul 24, 2017 8:15 pm

Hi there,

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

Code: Select all

esp_get_free_heap_size()

slcasner
Posts: 17
Joined: Tue Dec 06, 2016 8:08 pm

Re: Documentation of memory debug feature?

Postby slcasner » Mon Jul 24, 2017 8:31 pm

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.


Who is online

Users browsing this forum: Bing [Bot] and 132 guests