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 | |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 14 | |
Rico Wind | 0091948 | 2018-10-12 08:57:10 +0200 | [diff] [blame] | 15 | def Main(): |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 16 | args = sys.argv[1:] |
| 17 | if len(args) != 1 or '--help' in args: |
| 18 | print( |
| 19 | 'Performance tracking takes exactly one argument, the name for display' |
| 20 | ) |
| 21 | return 1 |
| 22 | subprocess.check_call([DART, SCRIPT, args[0]]) |
| 23 | |
Rico Wind | 0091948 | 2018-10-12 08:57:10 +0200 | [diff] [blame] | 24 | |
| 25 | if __name__ == '__main__': |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 26 | sys.exit(Main()) |