debuggerd -b pid 作用:
打印pid进程的堆栈信息,并保存在/data/tombstones目录下,有些android版本是直接打印到终端,不作保存。
主要的用处:
定位死锁或者死循环。
debuggerd -b 帮助信息如下:
Usage: -b [<tid>] -b dump backtrace to console, otherwise dump full tombstone file If tid specified, sends a request to debuggerd to dump that task. Otherwise, starts the debuggerd server.
debuggerd工具源码下载地址: debuggerd 源码