Howto find native code memory leak in Android

fadden  
View profile  
 (3 users)  More options Aug 6, 1:41 am
On Aug 5, 5:16 am, clikx <click...@gmail.com> wrote: 
> Is there any tool available to find memory leak in native code? 
> Is there any tool like 'memprof' or 'mtrace' ported to work in Android 
> platform? 

If you have the right kind of build on the phone, you can replace / 
system/lib/libc.so with /system/lib/libc_debug.so and restart the 
framework.  Add "native=true" to your ~/.android/ddms.cfg, and start 
the stand-alone version of DDMS.  You should now have a "Native Heap" 
tab that you can use to examine native allocations. 
原文地址:https://www.cnblogs.com/goodloop/p/1552354.html