• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Vietnam Mobile Day 2013: Memory Management For Android Apps
 

Vietnam Mobile Day 2013: Memory Management For Android Apps

on

  • 441 views

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.

Statistics

Views

Total Views
441
Views on SlideShare
439
Embed Views
2

Actions

Likes
0
Downloads
9
Comments
0

1 Embed 2

http://sukien.gamelandvn.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Vietnam Mobile Day 2013: Memory Management For Android Apps Vietnam Mobile Day 2013: Memory Management For Android Apps Presentation Transcript

    • Memory ManagementFor Android Apps
    • Who am I ?Faculty at Aiti-AptechAndroid leader at Zoo Studio
    • What will I share today ? Heap size Garbage Collection Bitmap management
    • 290 MB2GB
    • Heap size Heap size Limits.G1 : 16MBNexus One : 32MBGalaxy S3 : 64MB
    • Heap size Honeycomb (3.0) support option : “largetHeap” ActivityManager.getLargeMemoryClass()
    • Garbage Collection
    • Garbage Collection Bigger heaps = longer pauses Pre- Gingerbread Stop all application Pause time > 100ms Gingerbread and beyond Concurrent Pause times < 5ms
    • Bitmap Pre Android 2.3 Freed via recycle() Full, Stop the world GCs
    • Bitmap > Android 2.3 Freed synchronously by GC Concurrent & partial GCs
    • 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
    • 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
    • Thank you !!! Email : vietbq@moneylover.me