2
我知道我可以使用,例如監視總使用:如何監控Android上CPU的使用情況?
adb top -m 10
但我會感興趣的單獨監控每個CPU。在Linux上使用top,我可以使用交互式命令'1'分別顯示每個CPU的使用情況。我如何在Android上執行此操作?
我知道我可以使用,例如監視總使用:如何監控Android上CPU的使用情況?
adb top -m 10
但我會感興趣的單獨監控每個CPU。在Linux上使用top,我可以使用交互式命令'1'分別顯示每個CPU的使用情況。我如何在Android上執行此操作?
看起來不像,您可以:
# 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可能有更完整的實現。
感謝您的建議,但systrace不工作的CPU負載(同樣的問題,http://stackoverflow.com/questions/14810460/does-android-systrace-require-root-access)。我想獲取數字,當它給我一個奇怪的HTML交互式頁面= / – JonesV 2013-04-12 08:47:22