Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: pkg/analysis_server/benchmark/integration/local_runner.dart

Issue 2753923003: Format all analyzer packages
Patch Set: Format all analyzer packages Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
7 import 'package:path/path.dart'; 7 import 'package:path/path.dart';
8 8
9 import 'main.dart' as performance; 9 import 'main.dart' as performance;
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 if (!new Directory(join(gitDir.path, outDirName)).existsSync()) { 53 if (!new Directory(join(gitDir.path, outDirName)).existsSync()) {
54 throw 'failed to find out or xcodebuild directory'; 54 throw 'failed to find out or xcodebuild directory';
55 } 55 }
56 result = Process.runSync('ln', 56 result = Process.runSync('ln',
57 ['-s', join(gitDir.path, outDirName), join(tmpSrcDirPath, outDirName)]); 57 ['-s', join(gitDir.path, outDirName), join(tmpSrcDirPath, outDirName)]);
58 if (result.exitCode != 0) throw 'failed to link out or xcodebuild: $result'; 58 if (result.exitCode != 0) throw 'failed to link out or xcodebuild: $result';
59 /* 59 /*
60 * Collect arguments 60 * Collect arguments
61 */ 61 */
62 var perfArgs = ['-i${inputFile.path}', '-t$tmpSrcDirPath',]; 62 var perfArgs = [
63 '-i${inputFile.path}',
64 '-t$tmpSrcDirPath',
65 ];
63 for (int index = 3; index < args.length; ++index) { 66 for (int index = 3; index < args.length; ++index) {
64 perfArgs.add(args[index].replaceAll('@tmpSrcDir@', tmpSrcDirPath)); 67 perfArgs.add(args[index].replaceAll('@tmpSrcDir@', tmpSrcDirPath));
65 } 68 }
66 perfArgs.add('-m${gitDir.path},$tmpSrcDirPath'); 69 perfArgs.add('-m${gitDir.path},$tmpSrcDirPath');
67 /* 70 /*
68 * Launch the performance analysis tool 71 * Launch the performance analysis tool
69 */ 72 */
70 performance.main(perfArgs); 73 performance.main(perfArgs);
71 } 74 }
72 75
73 /// Print help and exit 76 /// Print help and exit
74 void printHelp([String errMsg]) { 77 void printHelp([String errMsg]) {
75 if (errMsg != null) { 78 if (errMsg != null) {
76 print(''); 79 print('');
77 print('Error: $errMsg'); 80 print('Error: $errMsg');
78 print(''); 81 print('');
79 } 82 }
80 print('''Required arguments: <gitDir> <branch> <inputFile> 83 print('''Required arguments: <gitDir> <branch> <inputFile>
81 gitDir = a path to the git repository containing the initial target source 84 gitDir = a path to the git repository containing the initial target source
82 branch = the branch containing the initial target source 85 branch = the branch containing the initial target source
83 inputFile = the instrumentation or log file 86 inputFile = the instrumentation or log file
84 87
85 Optional arguments:'''); 88 Optional arguments:''');
86 print(performance.argParser.usage); 89 print(performance.argParser.usage);
87 exit(1); 90 exit(1);
88 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698