文章原文:http://www.atmcu.com/37.html
返回知识列表:Android知识列表
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.
使用的时候可以结合 pidof 命令。 debuggered -b $(pidof servicemanager)