blob: 5f1b4b3fb1b30c175d204316e8d3e319e8a1e47a [file] [log] [blame]
Ian Zernydcb172e2022-02-22 15:36:45 +01001#!/usr/bin/env python3
Rico Wind00919482018-10-12 08:57:10 +02002# 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
6import os
7import subprocess
8import sys
9import utils
10
11SCRIPT = '/google/data/ro/teams/dart/golem/bin/golem4.dart'
12DART = os.path.join(utils.THIRD_PARTY, 'dart-sdk', 'bin', 'dart')
13
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020014
Rico Wind00919482018-10-12 08:57:10 +020015def Main():
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020016 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 Wind00919482018-10-12 08:57:10 +020024
25if __name__ == '__main__':
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020026 sys.exit(Main())