Thursday 15 March 2012

android - 'Graphics' and 'GL' shown in meminfo only for application targeting 4.0 and above? -



android - 'Graphics' and 'GL' shown in meminfo only for application targeting 4.0 and above? -

i profiling memory usage out application meminfo. during process, got interesting founding.

i created tiny blank page activity targeting api level = 14, loaded 4.4 device, found:

class="snippet-code-html lang-html prettyprint-override"> pss private private swapped heap heap heap total dirty clean dirty size alloc free ------ ------ ------ ------ ------ ------ ------ native heap 40 40 0 0 5444 4816 135 dalvik heap 1975 1536 0 0 36600 28452 8148 dalvik other 1068 940 0 0 stack 60 60 0 0 other dev 700 636 4 0 .so mmap 1642 1272 0 0 .apk mmap 47 0 0 0 .ttf mmap 2 0 0 0 .dex mmap 318 20 8 0 other mmap 5 4 0 0 graphics 31520 31520 0 0 <---------------------- gl 11464 11464 0 0 <---------------------- unknown 955 952 0 0 total 49796 48444 12 0 42044 33268 8283

later, if changed api level 11, , profiled again:

class="snippet-code-html lang-html prettyprint-override"> pss private private swapped heap heap heap total dirty clean dirty size alloc free ------ ------ ------ ------ ------ ------ ------ native heap 44 44 0 0 2968 2101 6 dalvik heap 2042 1484 0 0 36600 28432 8168 dalvik other 1098 932 0 0 stack 56 56 0 0 other dev 4 0 4 0 .so mmap 694 556 0 0 .apk mmap 47 0 0 0 .ttf mmap 2 0 0 0 .dex mmap 314 20 8 0 other mmap 5 4 0 0 unknown 429 420 0 0 total 4735 3516 12 0 39568 30533 8174

there no 'graphics' , 'gl' @ all. so, thought of these 2 items? , what's reason api level leads different result 'total'.

thanks all.

android memory-leaks

No comments:

Post a Comment