获取Android系统memory的使用情况的脚本

mkdir memoryUsage
adb shell dumpsys meminfo > memoryUsage/dumpsys_meminfo.txt 
adb shell cat /sys/kernel/debug/ion/ion_mm_heap > memoryUsage/ion_mm_heap.txt 
adb shell cat /proc/mali/memory_usage > memoryUsage/gpu_mali_memory_usage.txt 
adb shell ps > memoryUsage/ps.txt 
adb shell cat /proc/vmallocinfo > memoryUsage/vmallocinfo.txt 
adb shell cat /proc/zoneinfo > memoryUsage/zoneinfo.txt 
adb shell cat /proc/meminfo > memoryUsage/proc_meminfo.txt
adb shell dumpsys procstats > memoryUsage/proc_stats.txt

pause

你可能感兴趣的:(获取Android系统memory的使用情况的脚本)