Your SlideShare is downloading. ×
  • Like
Vietnam Mobile Day 2013: Memory Management For Android Apps
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Vietnam Mobile Day 2013: Memory Management For Android Apps

  • 219 views
Published

Bài chia sẻ của anh Nguyễn Quốc Việt, Giảng viên Aiti Aptech tại hội thảo Vietnam Mobile Day 2013 tổ chức tại TP.Hồ Chí Minh vào ngày 18/05/2013.

Bài chia sẻ của anh Nguyễn Quốc Việt, Giảng viên Aiti Aptech tại hội thảo Vietnam Mobile Day 2013 tổ chức tại TP.Hồ Chí Minh vào ngày 18/05/2013.

Published in Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
219
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
9
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Memory ManagementFor Android Apps
  • 2. Who am I ?Faculty at Aiti-AptechAndroid leader at Zoo Studio
  • 3. What will I share today ? Heap size Garbage Collection Bitmap management
  • 4. 290 MB2GB
  • 5. Heap size Heap size Limits.G1 : 16MBNexus One : 32MBGalaxy S3 : 64MB
  • 6. Heap size Honeycomb (3.0) support option : “largetHeap” ActivityManager.getLargeMemoryClass()
  • 7. Garbage Collection
  • 8. Garbage Collection Bigger heaps = longer pauses Pre- Gingerbread Stop all application Pause time > 100ms Gingerbread and beyond Concurrent Pause times < 5ms
  • 9. Bitmap Pre Android 2.3 Freed via recycle() Full, Stop the world GCs
  • 10. Bitmap > Android 2.3 Freed synchronously by GC Concurrent & partial GCs
  • 11. GC_FOR_ALLOC freed <1K, 5% free 4961K/5176K,paused 13ms, total 13msGC_CONCURRENT freed 0K, 5% free 4961K/5176K,paused 8ms+0ms, total 10msGC_FOR_ALLOC freed 2418K, 45% free3192K/5788K, paused 1ms, total 1ms
  • 12. References http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html. http://kohlerm.blogspot.com/2009/02/memory-leaks-are-easy-to-find.html http://developer.android.com/training/displaying-bitmaps/manage-memory.html
  • 13. Thank you !!! Email : vietbq@moneylover.me