2013-04-11 167 views
2

我知道我可以使用,例如监视总使用:如何监控Android上CPU的使用情况?

adb top -m 10 

但我会感兴趣的单独监控每个CPU。在Linux上使用top,我可以使用交互式命令'1'分别显示每个CPU的使用情况。我如何在Android上执行此操作?

回答

2

看起来不像,您可以:

# top -h 
Usage: top [ -m max_procs ] [ -n iterations ] [ -d delay ] [ -s sort_column ] [ -t ] [ -h ] 
    -m num Maximum number of processes to display. 
    -n num Updates to show before exiting. 
    -d num Seconds to wait between updates. 
    -s col Column to sort by (cpu,vss,rss,thr). 
    -t  Show threads instead of processes. 
    -h  Display this help screen. 

你可以使用systrace来跟踪每CPU进程的执行时间。另见Analyzing Display and Performance with Systrace。如果你有一个扎根设备,busybox可能有更完整的实现。

+0

感谢您的建议,但systrace不工作的CPU负载(同样的问题,http://stackoverflow.com/questions/14810460/does-android-systrace-require-root-access)。我想获取数字,当它给我一个奇怪的HTML交互式页面= / – JonesV 2013-04-12 08:47:22

相关问题