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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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