Wednesday, June 16, 2010

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

I tried the Eclipse MAT tool. Really cool stuff.

Unfortunately, it appears blind to bitmaps, at least so far.

I was relieved to find out that the 4 Megabyte bitmap is only taking
up 32 bytes. ;)

The cache of 25 bitmaps was listed as the biggest suspect. But with a
retained heap of 600K, this only includes the original bytes, and
doesn't tell me if any of the uncompressed bitmaps are taking up
memory.

This is going to be a serious limitation of tools if they can't see
bitmaps, especially if bitmaps are your biggest suspects for leaks.

Romain, do you know if you can make any tool see bitmaps?

Nathan

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment