Android Native crash tomestone trace 批量转换trace方法

Android Native crash tomestone trace 批量转换trace方法

Android O源代码下有批量转换 Native trace 工具 development/scripts/stack

帮助信息:

  usage: ./stack [options] [FILE]

  --arch=arm|arm64|mips|mips64|x86|x86_64
       the target architecture

  FILE should contain a stack trace in it somewhere
       the tool will find that and re-print it with
       source files and line numbers.  If you don't
       pass FILE, or if file is -, it reads from
       stdin.

事例:

  • adb shell kill -3 PID
  • adb pull /data/tombstones
  • development/scripts/stack –arch x86_64 tombstones/tombstone_00

以下方式也可以获取trace:
adb shell -b PID |tee native_crash_trace.txt

符号文件会自动从当前目录搜索,无需设置。
转换后的效果非常好,由于security 不方粘贴。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值