获取包名
adb shell am monitor
APP启动时间
adb shell am start -W -n package/acticity
获取app包名activity
adb logcat | grep START(win adb logcat | findstr START)
com.tal.kaoyan/.ui.activity.SplashActivity
com.tal.kaoyan/com.tal.kaoyan.ui.activity.SplashActivity
停止app
adb shell am force-stop package
app热启动(最小化)
adb shell input keyevent 3
获取CPU数据
adb shell dumpsys cpuinfo |findstr packagename
获取进程ID指令
adb shell ps | findstr packgename
获取进程ID流量
adb shell cat /proc/pid(进程ID)/net/dev
获取电量
adb shell dumpsys battery
切换到非充电状态
adb shell dumpsys battery set status 1(2是充电)
获取内存
adb shell top (-d)命令刷新点频率
vss 虚拟消耗内存
rss 实际适应物理内存