How to Find memory leaks from native code in android
23,230
Really useful information I got to find the leaks in native code.
- add native=true in ~/.android/ddms.cfg
- replace
/system/lib/libc.so
with/system/lib/libc_debug.so
restart the framework, start DDMS, you'll see a tab native-heap
In native-heap, you can see the allocations by native code.
For more information click here
Related videos on Youtube
Author by
Anil Arrabole
Android and web developer with telecom, mobile and media domain experience.
Updated on July 09, 2022Comments
-
Anil Arrabole over 1 year
Just wondering if someone knows how to find out memory leaks in native code from android. Google search gives lot of solution, but none of them is full. Please let me know if anybody knows how to do this.
-
Theo over 11 yearsAlso see this article for a step-by-step guide on getting the DDMS native heap tracking setup: bricolsoftconsulting.com/2012/04/25/…
-
Peter Tran almost 10 yearsBricolsoft link changed to bricolsoftconsulting.com/…