On May 13, 1:17 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > According to the heap 'browser' that comes with the ADT plugin in > Eclipse. > My app is using less than 4MByte (it's using about 2MByte) but it > won't allow me to create a bitmap of 12MByte.
Something to play with: grab http://bigflake.com/gclog.py.txt and run it. It will format the GC events from the device event log. You'll see stuff like this: 05-13 15:07:35 acore(2600) softlim=6464KB, extlim=2368KB, extalloc=2368KB freed 1024 objects / 46336 bytes in 138ms softlim + extlim may not exceed 16MB. (It's actually more complex than that, but that's a good approximation.) "extlim" is the amount of space currently being set aside for bitmaps, while "softlim" is the virtual heap soft limit. You will see GC events for all processes -- the script doesn't have any fancy filtering features yet -- so you need to search for your app. The above is from process 2600 (acore). This won't provide any detail about what's going on, but it may give you a better sense of how things are allocated. For example, if softlim+extlim exceeds 4MB, a 12MB bitmap allocation is not going to succeed. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---