Andoid heap debugging

Started by
2 comments, last by Setrio 13 years, 1 month ago
So, I'm blowing up the heap somewhere in my logic thread of the Android game I'm making, it plays fine until the heap randomly grows from ~ 3MB to almost 30MB, whereas the game hangs (quite understandably). I've been hacking away at this bug for a few days, turning systems on and off, and playing around with both DDMS and the Eclipse Memory Analyzer, and have found nothing, quite probably because of my lack of understanding on how to use these tools.

Anyone knows some good tutorials / examples for android memory debugging? Specifically of the heap.

Thanks guys.
Advertisement
Check this link http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html

Question, you are using imageviews or something like that? Bitmapfactory or something like that?
Yeah, using a BitmapFactory, but I found the bug, it was a iterative BFS who was hugging all the memory for it's stack.
Thanks for the link tough!
Good to know.

Anyway, check your bitmapfactory usage, this class has lot of problems when you are using bitmaps.

This topic is closed to new replies.

Advertisement