当ANR出现时, traces.txt 中的WaitingForDebuggerSend
状态是什么意思?示例:
"main" prio=5 tid=1 WaitingForDebuggerSend
| group="main" sCount=1 dsCount=0 obj=0x76a3a6e8 self=0xe9b84f00
| sysTid=15408 nice=-10 cgrp=default sched=0/0 handle=0xec97d534
| state=S schedstat=( 1778065551689 213519684436 1484538 ) utm=163362 stm=14444 core=1 HZ=100
| stack=0xff20e000-0xff210000 stackSize=8MB
| held mutexes=
kernel: __switch_to+0x70/0x7c
kernel: futex_wait_queue_me+0xe4/0x144
我在 art / runtime / thread_state.h 中找到了以下解释:
35 kWaitingForDebuggerSend, // WAITING TS_WAIT blocked waiting for events to be sent
但是我还是不明白。正在等待发送哪些事件?