1、查看进程号
ps:查看进程信息
-A:列出所有的进程
yocn@bogon SimpleTest % adb shell ps -A | grep "a.b.c"
u0_a132 6361 870 13753828 98908 0 0 S a.b.c
2、查看进程(PID 6361)下的线程
ps -T -p <pid>
或
top -H -p <pid>
yocn@bogon SimpleTest % adb shell ps -T -p 6361
USER PID TID PPID VSZ RSS WCHAN ADDR S CMD
u0_a132 6361 6361 870 13753956 96168 0 0 S a.b.c
u0_a132 6361 6371 870 13753956 96168 0 0 S Signal Catcher
u0_a132 6361 6372 870 13753956 96168 0 0 S perfetto_hprof_
u0_a132 6361 6373 870 13753956 96168 0 0 S ADB-JDWP Connec
u0_a132 6361 6374 870 13753956 96168 0 0 S Jit thread pool
u0_a132 6361 6375 870 13753956 96168 0 0 S HeapTaskDaemon
u0_a132 6361 6376 870 13753956 96168 0 0 S ReferenceQueueD
u0_a132 6361 6377 870 13753956 96168 0 0 S FinalizerDaemon
u0_a132 6361 6378 870 13753956 96168 0 0 S FinalizerWatchd
u0_a132 6361 6379 870 13753956 96168 0 0 S Binder:6361_1
u0_a132 6361 6380 870 13753956 96168 0 0 S Binder:6361_2
u0_a132 6361 6381 870 13753956 96168 0 0 S Binder:6361_3
u0_a132 6361 6382 870 13753956 96168 0 0 S Profile Saver
u0_a132 6361 6383 870 13753956 96168 0 0 S plumber-android
u0_a132 6361 6384 870 13753956 96168 0 0 S LeakCanary-Heap
u0_a132 6361 6385 870 13753956 96168 0 0 S RenderThread