summaryrefslogtreecommitdiff
path: root/tools/compile-jar.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve compile-jar.pyAlex Light2021-03-311-9/+49
| | | | | | | | | | | | | Misc improvements to compile-jar.py Add a '--add-bcp' option for appending jars to the BCP. Make --profile-file support binary profile files. Fix non-host arch boot-image arguments Test: ./art/tools/compile-jar.py --profile-file bad_compile.prof --arch arm64 ~/no.nrk.mobil.radio_10922_base_split.apk --compiler-filter=speed-profile --dump-stats -j1 --force-allow-oj-inlines Change-Id: Iac4190c806ae2043ff574e8a9c409163aebd4ef3
* Misc tools improvementsAlex Light2021-01-061-0/+217
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