1.adb shell ,enter shell of b2g
2.ps |grep b2g get the number of process
3.enter the process number dir
4.cat status to get the information of the process you like
1|root@mako:/proc/179 # cat status
Name: b2g
State: S (sleeping)
Tgid: 179
Pid: 179
PPid: 1
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 1024
Groups:
VmPeak: 480272 kB
VmSize: 292468 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 125172 kB
VmRSS: 120852 kB
VmData: 173608 kB
VmStk: 136 kB
VmExe: 168 kB
VmLib: 59484 kB
VmPTE: 422 kB
VmSwap: 0 kB
Threads: 76
SigQ: 0/14666
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000011000
SigCgt: 000000038200ceff
CapInh: 0000000000000000
CapPrm: ffffffffffffffff
CapEff: ffffffffffffffff
CapBnd: ffffffffffffffff
Seccomp: 0
Cpus_allowed: f
Cpus_allowed_list: 0-3
voluntary_ctxt_switches: 202861
nonvoluntary_ctxt_switches: 235177
root@mako:/proc/179 #
if you are interested with nuwa process or other child process of b2g,enter the subdirectory of b2g number-dir.under the tasks dir
root@mako:/proc/521 # cat status
Name: (Nuwa)
State: S (sleeping)
Tgid: 521
Pid: 521
PPid: 179
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 256
Groups:
VmPeak: 98696 kB
VmSize: 98696 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 20844 kB
VmRSS: 20844 kB
VmData: 34748 kB
VmStk: 136 kB
VmExe: 168 kB
VmLib: 53036 kB
VmPTE: 92 kB
VmSwap: 0 kB
Threads: 20
SigQ: 0/14666
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000011002
SigCgt: 0000000382008cf8
CapInh: 0000000000000000
CapPrm: ffffffffffffffff
CapEff: ffffffffffffffff
CapBnd: ffffffffffffffff
Seccomp: 0
Cpus_allowed: f
Cpus_allowed_list: 0-3
voluntary_ctxt_switches: 81
nonvoluntary_ctxt_switches: 752
root@mako:/proc/521 #