Ian Zerny | dcb172e | 2022-02-22 15:36:45 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Rico Wind | 0091948 | 2018-10-12 08:57:10 +0200 | [diff] [blame] | 2 | # Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| 3 | # for details. All rights reserved. Use of this source code is governed by a |
| 4 | # BSD-style license that can be found in the LICENSE file. |
| 5 | |
| 6 | import os |
| 7 | import subprocess |
| 8 | import sys |
| 9 | import utils |
| 10 | |
| 11 | SCRIPT = '/google/data/ro/teams/dart/golem/bin/golem4.dart' |
| 12 | DART = os.path.join(utils.THIRD_PARTY, 'dart-sdk', 'bin', 'dart') |
| 13 | |
| 14 | def Main(): |
| 15 | args = sys.argv[1:] |
Ian Zerny | 0191243 | 2018-11-19 12:30:09 +0100 | [diff] [blame] | 16 | if len(args) != 1 or '--help' in args: |
Rico Wind | 0091948 | 2018-10-12 08:57:10 +0200 | [diff] [blame] | 17 | print('Performance tracking takes exactly one argument, the name for display') |
Rico Wind | f72fa15 | 2018-10-22 15:41:03 +0200 | [diff] [blame] | 18 | return 1 |
Rico Wind | 0091948 | 2018-10-12 08:57:10 +0200 | [diff] [blame] | 19 | subprocess.check_call([DART, SCRIPT, args[0]]) |
| 20 | |
| 21 | if __name__ == '__main__': |
| 22 | sys.exit(Main()) |