1, 刪除日志緩存
adb logcat -b all -c
2, 查看當(dāng)前手機(jī) CPU 占用情況
首先 adb shell 再: top -m 20 -t -s cpu
-m num Maximum number of processes to display. // 最多顯示多少個(gè)進(jìn)程
-n num Updates to show before exiting. // 刷新次數(shù)
-d num Seconds to wait between updates. // 刷新間隔時(shí)間(默認(rèn)5秒)
-s col Column to sort by (cpu,vss,rss,thr). // 按哪列排序
-t Show threads instead of processes. // 顯示線程信息而不是進(jìn)程