???????????????????????
???????? ???????[ 2016/9/1 13:41:35 ] ??????????????? ???????
????????
????Android?????????????????????????????????ò??????????????????????????????????
???????????????????????????????磺?????cpu??GPU??????????????????????????????????????????????????棬cpu?????????????????????????????????????????????????GT???????????????Щ?????????????????android?????Щapi??????????????????????????????android???????????adb?????????????????GPU????????????????????????????????в???????????????????????????????????????????????????Android?????app????????????????м??????
??????????????????
???????????????????????????????????????????£?????????????????????????????????????????????????????????????????飬????????????????????????????????????????£????????????????С??????????????????????????????????ò???ù????????????????????????棬???????????????????????????????????????
????1?? ?????????????ú????home??????ú?????У?????????????????????
????2?? ?е??????????????????????????е????????
????3?? ?????????????????????????????????????
?????????????????????????????????????????????á??????????????????????????????????????????????????????????????????????????????????
???????????android????????????????????????
????1?? ???Android???????? ActivityManager.MemoryInfo() ????????????÷?????????????????????????Emmagee???????GT????????????÷??????????????????????????????????app?????ж??????ü????????????????????????sd???б????????????????????????????????????
????2?? ???android??adb??????????????adb shell dumpsys meminfo | grep packagename or pid ?????
????2.1??dumpsys??????????
???????adb shell dumpsys meminfo
????????????????????????????????????
?????????????????????????????????????????????????
???????adb shell dumpsys meminfo packagename or pid
???????????Heap size????а???Native Heap??Dalvik Heap??????Heap??????dalvik???????java?????????????????????????????У?dalvik heap????????????????????????????OOM??
????2.2??????????ó???????????????
????adb shell getprop | grep or findstr heapgrowthlimit
??????????????????????????128MB????meminfo????dalvik heap size?????????????128M???????OOM??dalvik.vm.heapgrowthlimit??dalvik.vm.heapsize????java????????????????????????????dalvik heap??heapgrowthlimit???????????OOM???????Manifest?е?application?????????android??largeHeap=“true”???????????????dalvik heap ??heapsize??????????OOM??????豸??????????????????????????
????C/C++????????????native heap?У???java??????????????dalvik heap?С????????Android????dalvik??vm heapsize??????????????java?????????java????????????????OOM????????????????48M??24M??16M??????????????????????adb shell getprop | grep dalvik.vm.heapgrowthlimit???????
????????????????OMM???????RAM????????????????????java heap????????dalvik vm heapgrowthlimit??????????RAM?????????£?????????OOM
????2.3??????????????????????????????????????β?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11