Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find memory leaks for native code in post Android 18?

I am trying to find a way to find memory leaks in native code on Android apps. I have found others answers like How to Find memory leaks from native code in android, but these solutions aren't applicable post Android 18 as the DDMS no longer supports the "Native Heap" tab.

So if anyone can suggest a solution, it will be great help!

like image 355
Harjot Singh Avatar asked Nov 08 '22 22:11

Harjot Singh


1 Answers

https://github.com/android/ndk/issues/431 tracks LSan support for the NDK, which will be the best option when that's done. It's not currently being worked on, but will probably be picked up once TSan is done.

like image 92
Dan Albert Avatar answered Nov 15 '22 06:11

Dan Albert