How to Find memory leaks from native code in android

前端 未结 1 476
一向
一向 2020-12-01 02:48

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 i

相关标签:
1条回答
  • 2020-12-01 03:31

    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 讨论(0)
提交回复
热议问题