Page 1 of 1

How to determine heap usage?

Posted: Wed Aug 07, 2019 9:05 pm
by cduran
Running mp on an ARM using the minimal build. I would like to know if there are any built in methods for analyzing heap usage.

Re: How to determine heap usage?

Posted: Thu Aug 08, 2019 6:02 am
by mattyt
I suspect you're looking for gc.mem_free(). I think it's implemented for minimal ARM..?

Re: How to determine heap usage?

Posted: Thu Aug 08, 2019 7:14 am
by pythoncoder
Or micropython.mem_info(), if that's implemented.