oatdump使用命令

使用oatdump将程序执行堆栈信息打印出来:

oatdump --oat-file=/home/wanghailu/subhdd/vvvWindow/aaaaaaaaaaa/Settings.odex  > ~/Settings.txt


wanghailu@ubuntu:base$ oatdump 
No arguments specified
Usage: oatdump [options] ...
    Example: oatdump --image=$ANDROID_PRODUCT_OUT/system/framework/boot.art
    Example: adb shell oatdump --image=/system/framework/boot.art

  --oat-file=<file.oat>: specifies an input oat filename.
      Example: --oat-file=/system/framework/boot.oat

  --image=<file.art>: specifies an input image location.
      Example: --image=/system/framework/boot.art

  --boot-image=<file.art>: provide the image location for the boot class path.
      Do not include the arch as part of the name, it is added automatically.
      Example: --boot-image=/system/framework/boot.art

  --instruction-set=(arm|arm64|mips|mips64|x86|x86_64): for locating the image
      file based on the image location set.
      Example: --instruction-set=x86
      Default: x86_64

  --output=<file> may be used to send the output to a file.
      Example: --output=/tmp/oatdump.txt

  --dump:raw_mapping_table enables dumping of the mapping table.
      Example: --dump:raw_mapping_table

  --dump:raw_gc_map enables dumping of the GC map.
      Example: --dump:raw_gc_map

  --no-dump:vmap may be used to disable vmap dumping.
      Example: --no-dump:vmap

  --no-disassemble may be used to disable disassembly.
      Example: --no-disassemble

  --list-classes may be used to list target file classes (can be used with filters).
      Example: --list-classes
      Example: --list-classes --class-filter=com.example.foo

  --list-methods may be used to list target file methods (can be used with filters).
      Example: --list-methods
      Example: --list-methods --class-filter=com.example --method-filter=foo

  --symbolize=<file.oat>: output a copy of file.oat with elf symbols included.
      Example: --symbolize=/system/framework/boot.oat

  --class-filter=<class name>: only dumps classes that contain the filter.
      Example: --class-filter=com.example.foo

  --method-filter=<method name>: only dumps methods that contain the filter.
      Example: --method-filter=foo

  --export-dex-to=<directory>: may be used to export oat embedded dex files.
      Example: --export-dex-to=/data/local/tmp

  --addr2instr=<address>: output matching method disassembled code from relative
                          address (e.g. PC from crash dump)
      Example: --addr2instr=0x00001a3b
 


关注我的技术公众号,查看更多优质技术文章推送

微信扫一扫下方二维码即可关注:

关注我的技术公众号,查看更多优质技术文章推送

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hailushijie

您的鼓励是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值