1.导出
adb pull data/anr/traces.txt
新版本手机:
手机权限的问题,adb bugreport C:\Users\Nxin\Desktop,用这个命令,把路径换成你希望导出的位置
2.定位到指定行
Cmd line: xxx(xxx为包名)
3.定位到
DALVIK THREADS (行数):
4.定位到
"main" xxxx(如 "main" prio=5 tid=1 Runnable)
----- pid 2591 at 2021-08-19 10:31:18 -----
Cmd line: com.snda.wifilocating
Build fingerprint: 'HONOR/JMM-AL10/HWJMM-Q:7.0/HONORJMM-AL10/C00B172:user/release-keys'
ABI: 'arm'
Build type: optimized
Zygote loaded classes=4443 post zygote classes=8025
Intern table: 100179 strong; 851 weak
JNI: CheckJNI is off; globals=863 (plus 715 weak)
....
suspend all histogram: Sum: 92.226ms 99% C.I. 0.007ms-28.134ms Avg: 1.317ms Max: 32.077ms
DALVIK THREADS (247):
"Signal Catcher" daemon prio=5 tid=3 Runnable
| group="system" sCount=0 dsCount=0 obj=0x12c7c5e0 self=0xdd3e2200
| sysTid=2606 nice=0 cgrp=default sched=0/0 handle=0xeb4a5920
| state=R schedstat=( 413577849 48562846 133 ) utm=6 stm=35 core=7 HZ=100
| stack=0xeb3a9000-0xeb3ab000 stackSize=1014KB
| held mutexes= "mutator lock"(shared held)
(no managed stack frames)
....
"main" prio=5 tid=1 Runnable
| group="main" sCount=0 dsCount=0 obj=0x77b8df78 self=0xebe84f00
| sysTid=2591 nice=-10 cgrp=default sched=0/0 handle=0xef3d7534
| state=R schedstat=( 21160804991 951786382 6056 ) utm=1963 stm=153 core=4 HZ=100
| stack=0xff198000-0xff19a000 stackSize=8MB
| held mutexes= "mutator lock"(shared held)