In the adb shell terminal, enter ps, you can view all current process status of the phone, where the full name of ps is Process Status.
1. ps command parameters
The above parameters can be freely combined according to needs, such as only need to view the current process thread:
View all child processes and child threads in the process View all common applications. Since android is a single user, the user of the normal process starts with u0, and google intends to develop android into more support. The user's name should be u1 For example, on my mobile phone output the following command: (20671 is a process pid) Output Results: Result Analysis: Note: WCHAN value is 0 The process is running; otherwise it represents the kernel address (sleep state). Slightly larger sites are inevitably load balanced, but hardware load balancing is expensive. There The SELinux function is an implementation of mandatory access control, which can Today, I suddenly had a whim and wanted to experience Mac Os. I heard that the virtual machine inst The most popular Linux operating system distribution is Ubuntu. But this time we are running ASP.N Linux operating system camera driver installation Linux driver development details Linux Virtual Machine VMware vSphere Installation Tutorial How to modify the network card after Linux virtual machine migration Linux CPU real-time monitoring command mpstat introduction The old machine's Linux hard disk plan Check whether the wireless network card supports creating hotspots under Linux Linux desktop environment GNOME practical skills Openldap installation and configuration basic tutorial How does the Linux system change face Win8 Linux system Win8 skin How to fix the problem that Firefox Backspace cannot be backed off in Linux system Win8 flight mode makes it easy to turn off all wireless networks Windows Vista set up broadband connection tutorial Win XP registry performance optimization tips Windows 2003 Internet configuration DNS skills Windows Server 2008 Top Ten New Highlights How to modify the number of Vista recently opened projects Microsoft: Flash/Java teammates pitted, Win8.1 risk increased Where is the win8 disk manager? How to use the mobile assistant to manage mobile phones in the official version of Win10?
, u2_, etc., and the normal app's uid starts at 10000:
`ps |
Grep ^u0`;2. ps result analysis
ps -P -p -x -c |
Grep -E "NAME|
20671 "
Field
Meaning
Value
USER Process Current user system PID Process ID 20671 PPID Parent Process ID 497 VSIZE Process Virtual Address Space Size 2085804B RSS Process is using physical memory size 60892B CPU CPU consumption 1 PRIO Process optimization level 20 NICE Nice value 0 RTPRI Real-time process priority 0 SCHED scheduling policy SCHED_OTHER (default policy) PCY process Bg WCHAN kernel address ffffffff PC current program pointer b17d3d30 - sleep state S NAME process name com.android.settings - user mode and kernel state time (unit s) u:130, s:12