diff options
author | Rico Wind <ricow@google.com> | 2017-08-16 09:30:56 +0200 |
---|---|---|
committer | Rico Wind <ricow@google.com> | 2017-08-16 09:30:56 +0200 |
commit | 7e0b4c706e3b0a95d8089a374b704574a74e750d (patch) | |
tree | dc0827d2f6c86b42bbc37349a43a9c0b875bc92e | |
parent | 55e1d9ceb4ce4d227739c0dc71e1318ed188dfed (diff) | |
download | r8-7e0b4c706e3b0a95d8089a374b704574a74e750d.tar.gz |
Update script to enable easier comparison of release mode sizes
R=ager@google.com, tamaskenez@google.com
Bug:
Change-Id: Ic1226c2c39d4662516869afd8789f5a131c7b338
-rwxr-xr-x | tools/test_framework.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/test_framework.py b/tools/test_framework.py index b6f5a198e..32f0bc7eb 100755 --- a/tools/test_framework.py +++ b/tools/test_framework.py @@ -43,7 +43,7 @@ def parse_arguments(): ' third_party/framework/framework*.jar.' ' Report Golem-compatible CodeSize and RunTimeRaw values.') parser.add_argument('--tool', - choices = ['dx', 'd8', 'd8-release', 'goyt'], + choices = ['dx', 'd8', 'd8-release', 'goyt', 'goyt-release'], required = True, help = 'Compiler tool to use.') parser.add_argument('--name', @@ -65,13 +65,15 @@ def Main(): with utils.TempDir() as temp_dir: - if args.tool in ['dx', 'goyt']: + if args.tool in ['dx', 'goyt', 'goyt-release']: tool_args = ['--dex', '--output=' + temp_dir, '--multi-dex', '--min-sdk-version=' + MIN_SDK_VERSION] - if args.tool == 'goyt': + if args.tool.startswith('goyt'): tool_file = GOYT_EXE tool_args = ['--num-threads=8'] + tool_args + if args.tool == 'goyt-release': + tool_args.append('--no-locals') elif args.tool == 'dx': tool_file = DX_JAR else: |