当前位置:网站首页>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
边栏推荐
- Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
- Uninstall MySQL database
- Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)
- Example interview | sun Guanghao: College Club grows and starts a business with me
- Xi'an CSDN signed a contract with Xi'an Siyuan University, opening a new chapter in IT talent training
- EMMC / SD learning notes
- RTOS mainstream assessment
- SPI NAND flash summary
- Stack protector under armcc / GCC
- Nodejs + websocket cycle small case
猜你喜欢
超40W奖金池等你来战!第二届“长沙银行杯”腾讯云启创新大赛火热来袭!
Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
three. JS text ambiguity problem
AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
filter()遍历Array异常友好
The filter() traverses the array, which is extremely friendly
【动态规划】221. 最大正方形
The first lesson is canvas, showing a small case
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
Solve the problem that Oracle needs to set IP every time in the virtual machine
随机推荐
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
MySQL5. 5 installation tutorial
Mui close other pages and keep only the first page
Filter and listener of three web components
9419 page analysis of the latest first-line Internet Android interview questions
mui 关闭其他页面,只保留首页面
uniapp image 引入本地图片不显示
Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
100 GIS practical application cases (52) - how to keep the number of rows and columns consistent and aligned when cutting grids with grids in ArcGIS?
2021年6月程序员工资统计,平均15052元,你拖后腿了吗?
「玩转Lighthouse」轻量应用服务器自建DNS解析服务器
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
Machine learning -- PCA and LDA
ECDSA signature verification principle and C language implementation
EMMC / SD learning notes
async void 導致程序崩潰
Three channel ultrasonic ranging system based on 51 single chip microcomputer (timer ranging)
mysql 基本语句查询
Nodejs + Mysql realize simple registration function (small demo)
MySQL -- 16. Data structure of index