当前位置:网站首页>Detailed explanation of ADB shell top command
Detailed explanation of ADB shell top command
2022-04-23 13:19:00 【Johnny2004】
One . Use adb shell command :
adb shell top -m 10 -s 9

Two . explain
Tasks: 552 total, 1 running, 510 sleeping, 0 stopped, 0 zombie
Mission ( process ) System now shared 552 A process , Some of them are in operation 1 individual ,510 Sleeping (sleep),stoped There are 0 individual ,zombie state ( Corpse ) There are 0 individual .
Mem: 5849960k total, 4014628k used, 1835332k free, 5756k buffers
Memory status : Total physical memory (5.6G) Total memory in use Total free memory Amount of memory cached
1TB=1024GB ,1GB=1024MB ,1MB=1024KB ,1KB=1024 byte .
Swap: 2293756k total, 1039804k used, 1253952k free, 918600k cached
swap Swap partition : Total exchange area Total swap area used k free Total number of swap buffers buffered
If you are used to calculating the available memory , Here is an approximate formula :
Mem Of free + Mem Of buffers + Swap Of cached
According to this formula, the available memory of this server :1835332k + 5756k + 918600k = 2759688k( about 2.6G)
800%cpu 13%user 0%nice 31%sys 756%idle 0%iow 0%irq 0%sirq 0%host
cpu state
800%cpu -- CPU Total amount
13%user -- User space occupancy CPU Percent of .
0%nice -- Change the priority of the process occupied CPU Percent of
31%sys -- Kernel space footprint CPU Percent of
756%idle -- Free CPU percentage
0%iow -- IO Waiting for occupation CPU Percent of
0%irq -- Hard interrupt (Hardware IRQ) Occupy CPU Percent of
0%sirq -- Soft interrupt (Software Interrupts) Occupy CPU Percent of
0%host --
[7m
PID — process id
USER — Process owner
PR — Process priority
NI — nice value . Negative value indicates high priority , A positive value indicates a low priority
VIRT — Total virtual memory used by the process , Company kb.VIRT=SWAP+RES
RES — Used by process 、 Physical memory size not swapped out , Company kb.RES=CODE+DATA
SHR — Shared memory size , Company kb
S — Process status .D= Uninterrupted sleep R= function S= sleep T= track / stop it Z= Zombie process
%CPU — Last updated to now CPU Percentage of time used
%MEM — Percentage of physical memory used by the process
TIME+ — Used by process CPU Total time , Company 1/100 second
COMMAND — Process name ( Command name / Command line )
3、 ... and . Be careful :
If you use adb shell top -m 10 -s cpu The following error will be reported : top: not integer: cpu
The thought of adb top --help command
top [-Hbq] [-k FIELD,] [-o FIELD,] [-s SORT] [-n NUMBER] [-m LINES] [-d SECONDS] [-p PID,] [-u USER,]
Show process activity in real time.
-H Show threads
-k Fallback sort FIELDS (default -S,-%CPU,-ETIME,-PID)
-o Show FIELDS (def PID,USER,PR,NI,VIRT,RES,SHR,S,%CPU,%MEM,TIME+,CMDLINE)
-O Add FIELDS (replacing PR,NI,VIRT,RES,SHR,S from default)
-s Sort by field number (1-X, default 9)
-b Batch mode (no tty)
-d Delay SECONDS between each cycle (default 3)
-m Maximum number of tasks to show
-n Exit after NUMBER iterations
-p Show these PIDs
-u Show these USERs
-q Quiet (no header lines)
so , my adb shell top -s The command only supports 0-X Numbers , Default 9, Guess respectively refers to
0 ,1 ,3 ,4 ,5 ,6 ,7 ,8,9 ,10 ,11 ,12
PID,USER,PR,NI,VIRT,RES,SHR,S,%CPU,%MEM,TIME+,CMDLINE
among ,9 It just represents cpu
版权声明
本文为[Johnny2004]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230608015039.html
边栏推荐
- Lpddr4 notes
- EMMC / SD learning notes
- 2020最新Android大厂高频面试题解析大全(BAT TMD JD 小米)
- Solve the problem of Oracle Chinese garbled code
- 2020年最新字节跳动Android开发者常见面试题及详细解析
- AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
- Metalama简介4.使用Fabric操作项目或命名空间
- You and the 42W bonus pool are one short of the "Changsha bank Cup" Tencent yunqi innovation competition!
- Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
- 基于uniapp异步封装接口请求简介
猜你喜欢

LeetCode_DFS_中等_695.岛屿的最大面积

100000 college students have become ape powder. What are you waiting for?

According to the salary statistics of programmers in June 2021, the average salary is 15052 yuan. Are you holding back?

Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C

Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!

web三大组件之Servlet

【微信小程序】flex布局使用记录

nodeJs + websocket 循环小案例

Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
![[point cloud series] Introduction to scene recognition](/img/1f/c64712b03ae5b235b5dd3347c3e86a.png)
[point cloud series] Introduction to scene recognition
随机推荐
ECDSA signature verification principle and C language implementation
vscode小技巧
The filter() traverses the array, which is extremely friendly
According to the salary statistics of programmers in June 2021, the average salary is 15052 yuan. Are you holding back?
MySQL 8.0.11 download, install and connect tutorials using visualization tools
100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
Async void provoque l'écrasement du programme
Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
2021年6月程序员工资统计,平均15052元,你拖后腿了吗?
100 GIS practical application cases (34) - splicing 2020globeland30
Solve the problem that Oracle needs to set IP every time in the virtual machine
mui picker和下拉刷新冲突问题
【行走的笔记】
Imx6ull QEMU bare metal tutorial 2: usdhc SD card
MySQL5.5安装教程
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
LeetCode_DFS_中等_695.岛屿的最大面积
web三大组件之Filter、Listener
[untitled] PID control TT encoder motor
AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit