Are there some useful tools to detect memory leaks in Android Java applications? Something similar to Valgrind where the place of creation of a non-freed object is shown?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Watch this: http://www.youtube.com/watch?v=_CruQY55HOk
Then install MAT for Eclipse. Happy hounting!
回答2:
read this post on Android Developer Blog, it has what you need http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html