How to log the CPU and network utilization for Android
I want to get the CPU utilization over time and turn the records into plot
diagrams. I have surveyed some method for instant utilization, like shell
command top, dumpsys, and APPs TaskSpy.
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.
dumpsys
I want to customize the chart like TaskSpy and add some details to
analysis. It will be better to analysis on PC/MAC. Can I do these by adb
shell command?
No comments:
Post a Comment