| 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 import 'package:path/path.dart'; | 6 import 'package:path/path.dart'; |
| 7 import 'main.dart' as performance; | 7 import 'main.dart' as performance; |
| 8 | 8 |
| 9 // Local driver for performance measurement | 9 // Local driver for performance measurement |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 if (result.exitCode != 0) throw 'failed to link out or xcodebuild: $result'; | 59 if (result.exitCode != 0) throw 'failed to link out or xcodebuild: $result'; |
| 60 /* | 60 /* |
| 61 * Launch the performance analysis tool | 61 * Launch the performance analysis tool |
| 62 */ | 62 */ |
| 63 performance.main([ | 63 performance.main([ |
| 64 //'-vv', // very verbose | 64 //'-vv', // very verbose |
| 65 '-i', | 65 '-i', |
| 66 inputFile.path, | 66 inputFile.path, |
| 67 '-t', | 67 '-t', |
| 68 tmpSrcDirPath, | 68 tmpSrcDirPath, |
| 69 '--mapFrom', | 69 '-m', |
| 70 gitDir.path, | 70 '${gitDir.path},$tmpSrcDirPath', |
| 71 '--mapTo', | |
| 72 tmpSrcDirPath, | |
| 73 ]); | 71 ]); |
| 74 } | 72 } |
| 75 | 73 |
| 76 /// Print help and exit | 74 /// Print help and exit |
| 77 void printHelp([String errMsg]) { | 75 void printHelp([String errMsg]) { |
| 78 if (errMsg != null) { | 76 if (errMsg != null) { |
| 79 print(''); | 77 print(''); |
| 80 print('Error: $errMsg'); | 78 print('Error: $errMsg'); |
| 81 print(''); | 79 print(''); |
| 82 } | 80 } |
| 83 print('Arguments: <gitDir> <branch> <inputFile>'); | 81 print('Arguments: <gitDir> <branch> <inputFile>'); |
| 84 print('gitDir = git repository containing the initial target source'); | 82 print('gitDir = git repository containing the initial target source'); |
| 85 print('branch = the branch containing the initial target source'); | 83 print('branch = the branch containing the initial target source'); |
| 86 print('inputFile = the instrumentation or log file'); | 84 print('inputFile = the instrumentation or log file'); |
| 87 exit(1); | 85 exit(1); |
| 88 } | 86 } |
| OLD | NEW |