开发者

How to identify Memory Leaks in Android?

I have developed a simple application开发者_开发技巧 before testing it i want to check whether any memory leaks are there in the application. I don't know how to identify the leaks in Android. I am using Eclipse IDE for development.

Is there a good introduction into finding memory leaks in Android apps somewhere?


MAT plugin for eclipse, Just install it and click "Dump HPROF" button in Eclipse.
http://www.eclipse.org/mat/
http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html http://kohlerm.blogspot.com/2010/02/android-memory-usage-analysis-slides.html http://kohlerm.blogspot.com/search/label/memory


Once you test an application through the Eclipse Emulator, you will be informed about any memory leaks by going through the LogCat.

Any memory leaks will be highlighted in red as far as I know.

Kev

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜