summaryrefslogtreecommitdiffstats
path: root/tools/checker.py
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2015-01-15 00:02:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-15 00:02:31 +0000
commit1c1d40ab7fd856eac52e1a3be7ce60da3fc21fb5 (patch)
tree72df746c7d012f559e898707f7a039c034473d8d /tools/checker.py
parentcbabd3cba33662b296df7c1d392bdd35b3c978ad (diff)
parent866c03125a3fcd74c9fff04da87865f5eb1767d9 (diff)
downloadandroid_art-1c1d40ab7fd856eac52e1a3be7ce60da3fc21fb5.tar.gz
android_art-1c1d40ab7fd856eac52e1a3be7ce60da3fc21fb5.tar.bz2
android_art-1c1d40ab7fd856eac52e1a3be7ce60da3fc21fb5.zip
Merge "ART: dex2oat flag for HGraphVisualizer dump file"
Diffstat (limited to 'tools/checker.py')
-rwxr-xr-xtools/checker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/checker.py b/tools/checker.py
index 406a311638..a7cde62fe8 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])