开发者

How to Find memory leaks from native code in android

开发者 https://www.devze.com 2023-02-13 03:59 出处:网络
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 t

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开发者_如何学编程.


Really useful information I got to find the leaks in native code.

  1. add native=true in ~/.android/ddms.cfg
  2. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消