diff options
author | David Brazdil <dbrazdil@google.com> | 2015-01-13 18:07:00 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2015-01-13 18:07:00 +0000 |
commit | 54953dfdcb3bb8896d8af2d20adef84fb740ce77 (patch) | |
tree | 5ffa9718d1f20c27fceaff95a1da0558d5d20321 /tools | |
parent | 8fccea249b1a6f1469eeea42c2b2cca06ce1c70d (diff) | |
download | art-54953dfdcb3bb8896d8af2d20adef84fb740ce77.zip art-54953dfdcb3bb8896d8af2d20adef84fb740ce77.tar.gz art-54953dfdcb3bb8896d8af2d20adef84fb740ce77.tar.bz2 |
ART: dex2oat flag for HGraphVisualizer dump file
This patch adds a new flag to dex2oat which allows to specify the
name of the file that HGraphVisualizer will store its output into.
Until now the graph was dumped to "art.cfg" in the current working
directory. To make Checker work with run-test, the output directory
needs to be customizable.
Change-Id: I395c518b987e594e89e5e80f202a96befa41ac20
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/checker.py b/tools/checker.py index 406a311..a7cde62 100755 --- a/tools/checker.py +++ b/tools/checker.py @@ -713,7 +713,7 @@ def CompileTest(inputFile, tempFolder): classFolder = tempFolder + "/classes" dexFile = tempFolder + "/test.dex" oatFile = tempFolder + "/test.oat" - outputFile = tempFolder + "/art.cfg" + outputFile = tempFolder + "/test.cfg" os.makedirs(classFolder) # Build a DEX from the source file. We pass "--no-optimize" to dx to avoid @@ -723,7 +723,7 @@ def CompileTest(inputFile, tempFolder): # Run dex2oat and export the HGraph. The output is stored into ${PWD}/art.cfg. with cd(tempFolder): - check_call(["dex2oat", "-j1", "--dump-passes", "--compiler-backend=Optimizing", + check_call(["dex2oat", "-j1", "--dump-cfg=" + outputFile, "--compiler-backend=Optimizing", "--android-root=" + os.environ["ANDROID_HOST_OUT"], "--boot-image=" + os.environ["ANDROID_HOST_OUT"] + "/framework/core-optimizing.art", "--runtime-arg", "-Xnorelocate", "--dex-file=" + dexFile, "--oat-file=" + oatFile]) |