ADB (16)-View real-time resource usage top

Source: Internet
Author: User

 

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

topThe 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.