blob: 0c09e70c02c0c6d705c2efc6d881743a07130401 [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
14def Main():
15 args = sys.argv[1:]
Ian Zerny01912432018-11-19 12:30:09 +010016 if len(args) != 1 or '--help' in args:
Rico Wind00919482018-10-12 08:57:10 +020017 print('Performance tracking takes exactly one argument, the name for display')
Rico Windf72fa152018-10-22 15:41:03 +020018 return 1
Rico Wind00919482018-10-12 08:57:10 +020019 subprocess.check_call([DART, SCRIPT, args[0]])
20
21if __name__ == '__main__':
22 sys.exit(Main())