Search code examples
androidmemory-leaksandroid-emulator

Android : How to test memory leak in an application?


I have developed an app, I want to check the Memory leak happening in the app. I am trying with eclipse MAT, but unsuccessful,I am getting HROF file but eclipse MAT unable to read it. Can anybody help me out. Any other way to findout.


Solution

  • The dump.hprof file from Android needs to be converted. Then you can open the converted-dump.hprof in MAT.

    hprof-conv dump.hprof converted-dump.hprof