查看指定进程中所有线程的优先级等信息

命令:

adb shell ps -AfT [PID] -o PID,TID,PCY,PRI,NI,RTPRIO,PR,%CPU,CPU,GROUP,LABEL,NAME,CMD > priority.txt

输出结果:

  PID   TID PCY PRI  NI RTPRIO PR %CPU CPU GROUP    LABEL                          NAME                        CMD            
  351   351  fg  19   0      - 20  0.0   0 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  xxx_xxxxx
  351   354  fg  19   0      - 20  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  xxx_xxxxx_s~ad
  351   357  fg  19   0      - 20  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  cam_reqmgr_t~ad
  351   358  fg  41   0      1 -2  0.0   3 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  engine_evnt_~_0
  351   359  fg  41   0      1 -2  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  engine_evnt_~_1
  351   360  fg  41   0      1 -2  0.0   1 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  engine_evnt_~_2
  351   361  fg  41   0      1 -2  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  engine_evnt_~_3
  351   362  fg  19   0      - 20  0.0   6 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  INPUT_detect~_0
  351   363  fg  19   0      - 20  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  INPUT_detect~_1
  351   364  fg  19   0      - 20  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  INPUT_detect~_2
  351   365  fg  19   0      - 20  0.0   5 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  INPUT_detect~_3
  351   367  fg  41   0      1 -2  0.0   4 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  ife0_v4l2
  351   368  fg  41   0      1 -2  0.0   4 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  ife1_v4l2
  351   369  fg  19   0      - 20  0.0   0 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  ais_diag_mgr~te
  351   372  fg  19   0      - 20  0.0   3 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  srv_health
  351   373  fg  19   0      - 20  0.0   2 camera   u:r:vendor_xxx_xxxxx:s0       xxx_xxxxx                  adv7282_thrd

你可能感兴趣的:(Android,linux编程,linux,android)