Command:
adb shell top
Output Example:
User 0%, System 6%, IOW 0%, IRQ 0%User 3 + Nice 0 + Sys 21 + Idle 280 + IOW 0 + IRQ 0 + SIRQ 3 = 307 PID PR CPU% S #THR VSS RSS PCY UID Name 8763 0 3% R 1 10640K 1064K fg shell top 131 0 3% S 1 0K 0K fg root dhd_dpc 6144 0 0% S 115 1682004K 115916K fg system system_server 132 0 0% S 1 0K 0K fg root dhd_rxf 1731 0 0% S 6 20288K 788K fg root /system/bin/mpdecision 217 0 0% S 6 18008K 356K fg shell /sbin/adbd ... 7779 2 0% S 19 1538748K 48896K bg u0_a71 com.sohu.inputmethod.sogou:classic 7963 0 0% S 18 1561916K 59568K fg u0_a58 org.mazhuang.boottimemeasure ...
What each column means:
Column Name |
meaning |
Pid |
Process ID |
PR |
Priority level |
CPU% |
Current instant CPU percent consumption |
S |
Process status (r= run, s= sleep, t= track/Stop, z= zombie process) |
#THR |
Number of threads |
Vss |
Virtual Set Size Virtualized memory consumption (contains memory consumed by shared libraries) |
Rss |
Resident Set Size actually uses physical memory (contains memory consumed by shared libraries) |
PCY |
Scheduling policy priority, Sp_background/spforeground |
Uid |
User ID of the process owner |
NAME |
Process Name |
top
The command also supports some command-line arguments, with the following detailed usage:
Usage: top [ -m max_procs ] [ -n iterations ] [ -d delay ] [ -s sort_column ] [ -t ] [ -h ] -m num 最多显示多少个进程 -n num 刷新多少次后退出 -d num 刷新时间间隔(单位秒,默认值 5) -s col 按某列排序(可用 col 值:cpu, vss, rss, thr) -t 显示线程信息 -h 显示帮助文档
ADB (16)-View real-time resource usage top