| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 |
| 6 import 'package:path/path.dart'; | 7 import 'package:path/path.dart'; |
| 8 |
| 7 import 'main.dart' as performance; | 9 import 'main.dart' as performance; |
| 8 | 10 |
| 9 // Local driver for performance measurement | 11 // Local driver for performance measurement |
| 10 | 12 |
| 11 main(List<String> args) { | 13 main(List<String> args) { |
| 12 /* | 14 /* |
| 13 * Parse arguments | 15 * Parse arguments |
| 14 */ | 16 */ |
| 15 if (args.length < 3) printHelp('Expected 3 arguments'); | 17 if (args.length < 3) printHelp('Expected 3 arguments'); |
| 16 var gitDir = new Directory(args[0]); | 18 var gitDir = new Directory(args[0]); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 79 } |
| 78 print('''Required arguments: <gitDir> <branch> <inputFile> | 80 print('''Required arguments: <gitDir> <branch> <inputFile> |
| 79 gitDir = a path to the git repository containing the initial target source | 81 gitDir = a path to the git repository containing the initial target source |
| 80 branch = the branch containing the initial target source | 82 branch = the branch containing the initial target source |
| 81 inputFile = the instrumentation or log file | 83 inputFile = the instrumentation or log file |
| 82 | 84 |
| 83 Optional arguments:'''); | 85 Optional arguments:'''); |
| 84 print(performance.argParser.usage); | 86 print(performance.argParser.usage); |
| 85 exit(1); | 87 exit(1); |
| 86 } | 88 } |
| OLD | NEW |