How to watch CPU usage using adb in android
1. Show CPU usage respectively in apps.
adb shell top -n 1 -s cpu
->details about top options
-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)
-H : Show threads instead of prcesses
-h : Display this help screen
2. Show CPU usage in specific app
adb shell top -n 60 -d 1 | FINDSTR <package name>
This command shows CPU usages during 60 seconds by 1 second.
댓글 없음:
댓글 쓰기