Pra*_*ant 30 android
我是android编程的新手.如何在android中获得每个应用程序的CPU使用率?你的帮助会更有帮助
K_A*_*nas 50
使用adb命令:
adb shell top -m 10
esc*_*tor 19
来源: 识别Android应用CPU使用率的技术
Linux的:
adb shell top -m 10 | grep packagename
视窗:
adb shell top -m 10 | FINDSTR 包名
Ajm*_*lim 9
去 Settings -> Developer Tools -> Show CPU Usage
Settings -> Developer Tools -> Show CPU Usage
然后运行应用程序
xbo*_*.ym 8
两种方法:1.adb shell"top -n 1"2.adb shell dumpsys cpuinfo
the*_*osh 1
有几种方法。
第一个是在Jelly Bean开发者选项中打开CPU使用率。
adb shell top -m 10第二个选项是在 Windows Android SDK 文件夹或./adb shell top -m 10Mac/Linux 中运行该函数。
./adb shell top -m 10
归档时间:
12 年,11 月 前
查看次数:
72634 次
最近记录:
6 年,5 月 前