我是安卓programming.How的新手,我们可以得到安卓系统中每个应用程序的CPU使用率吗?你的帮助会更有帮助
发布于 2012-12-26 23:50:41
使用adb命令:
adb shell top -m 10发布于 2013-11-10 19:21:08
来源:Technique for indentifying android app CPU usage
adb shell top -m 10 | grep包名称
adb shell top -m 10 | FINDSTR包名称
发布于 2012-12-27 00:03:32
转到Settings -> Developer Tools -> Show CPU Usage
然后运行应用程序
编辑:这必须在应用程序中完成。如果你在2019年阅读这篇文章,请使用CPU Profiler
https://stackoverflow.com/questions/14042687
复制相似问题