我知道我可以通过使用以下命令监控总使用量,例如:
adb top -m 10但我有兴趣单独监视每个CPU。在Linux上使用top,我可以使用交互式命令'1‘分别显示每个CPU的使用情况。我如何在Android上做到这一点?
发布于 2013-04-11 22:43:22
看起来你不能:
# 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可能有一个更完整的实现。
https://stackoverflow.com/questions/15951081
复制相似问题