summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.h
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2020-12-29 13:45:04 -0800
committerAlex Light <allight@google.com>2021-01-06 15:12:45 +0000
commit4fa48357a15f49c1dcb7c09a3cb23ab99d52b363 (patch)
tree2bc8ebc8a1256353a1f136c8019e5c3671ad7ec2 /compiler/optimizing/graph_visualizer.h
parentc9fcfd02a69170cedcd4cf2e66826f246dff6267 (diff)
Misc tools improvements
Rewrote compile-jar.sh in python to add ability to compile against host BCP, compile multiple apks/dexs, launch with debugger and utilize profiles more easily. Changed compile-jar.sh to be a wrapper around this script. ``` compile-jar.py [-h] [--dex2oat DEX2OAT] [--debug] [--profman PROFMAN] [--debug-profman] [--profile-file PROFILE | --profile-line PROFILE_LINE] [--arch {arm,arm64,x86,x86_64,host64,host32}] [--odex-file ODEX_FILE] [--save-profile SAVE_PROFILE] DEX [DEX ...] ``` Added pylibdexfile.py a python wrapper around libdexfile_external for scripting use. It can be used by 'include'ing it or interactively with `python3 -i art/tools/pylibdexfile.py`. Currently it has support for opening individual dexfiles (either from buffers or files) and opening jars. It is also able to get a list of all methods referenced in the dexfile. As libdexfile_external is expanded we could add to this if desired. Test: Manual Test: ./art/tools/compile-jar.py /tmp/benchmarks.dex /tmp/ritz.jar --debug --odex-file /tmp/ritz.odex --dump-stats --profile-line 'HSLbenchmarks/common/java/BenchmarkBase;->measure()D' --profile-line 'HSLbenchmarks/common/java/SelfTimingBenchmarkBase;->measureFor(ZJ)D' -j1 --compiler-filter=speed-profile Change-Id: I7bbbce6e68aef5a5fa1173960b0055bf5f76cd7f
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
0 files changed, 0 insertions, 0 deletions