Android dumpsys 命令

1.查看内存 adb shell dumpsys meminfo $package_name or $pid

获取Total,  dumpsys meminfo com.huawei.systemserver | grep ”TOTAL:“ | awk ‘{TOTAL = $2}END{print TOTAL}‘

dumpsys meminfo com.huawei.systemserver |grep "TOTAL SWAP PSS" | awk -F ‘ ‘  "{print $2}" (奇怪 linux上无效)

Android dumpsys 命令

 

2.dumpsys activity

https://www.cnblogs.com/JianXu/p/5376642.html

Android dumpsys 命令

上一篇:apcloud混合式开发app学习笔记


下一篇:iOS block疑难解答