Summary of common adb commands

View CPU usage

  • View the top 5 programs with CPU usage and output them every 3 seconds  top -m 5 -t -d 3(-m maximum number; -t display process name; -d refresh interval)
根据进程名查看其 CPU 占用率 `top -d 3| grep com.taobao.trip`


查看指定包的内存:
adb shell dumpsys meminfo | grep com.yinghd.circle

python中执行adb命令:
import os
os.system("adb shell dumpsys meminfo com.yinghd.circle")

查看手机是几核,即多少个CPU
$adb shell
$cat /proc/cpuinfo | grep processor


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326680967&siteId=291194637