[android-developers] Re: Bitmap vm memory location in ice cream sandwich

2011-12-19 Thread Hithredin
Thank you for your answers, that's helped me!

It was a background bitmap size problem, that shows up now.


On 18 déc, 21:33, Romain Guy romain...@android.com wrote:
 Also even when bitmaps were allocated on the native heap they counted
 against the Dalvik heap limit.









 On Sun, Dec 18, 2011 at 12:26 PM, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Dec 16, 2011 at 10:35 AM, Hithredin benoit.delvi...@gmail.com 
  wrote:
  Do you know how the bitmaps are managed by Android 4.0?
  In previous version the bitmaps were not located inside the VM of the
  application, but in the Native Heap instead.

  I ask this question because my application works well under versions
  2.x and 3.x, but since 4.0, it take more than 25Mb of heap space
  instead of 4Mb before.
  After an investigation oh HPROF files with MAT, it shows that 3
  bitmaps take each 6MB of memory when the app run on 4.0 device, which
  is not the case on lower versions.

  MAT, for Android 3.0+, will report bitmap memory, whereas it did not
  on previous versions.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com|http://github.com/commonsguy
 http://commonsware.com/blog|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, One Low Price!

  --
  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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

-- 
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


[android-developers] Bitmap vm memory location in ice cream sandwich

2011-12-18 Thread Hithredin
Hi developers!

Do you know how the bitmaps are managed by Android 4.0?
In previous version the bitmaps were not located inside the VM of the
application, but in the Native Heap instead.

I ask this question because my application works well under versions
2.x and 3.x, but since 4.0, it take more than 25Mb of heap space
instead of 4Mb before.
After an investigation oh HPROF files with MAT, it shows that 3
bitmaps take each 6MB of memory when the app run on 4.0 device, which
is not the case on lower versions.


Thanks!

-- 
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