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

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

Issue 1838933003: Format code in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/plugin/edit/assist/assist_core.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 // Local driver for performance measurement 11 // Local driver for performance measurement
12 12
13 main(List<String> args) { 13 main(List<String> args) {
14 /* 14 /*
15 * Parse arguments 15 * Parse arguments
16 */ 16 */
17 if (args.length < 3) printHelp('Expected 3 arguments'); 17 if (args.length < 3) printHelp('Expected 3 arguments');
18 var gitDir = new Directory(args[0]); 18 var gitDir = new Directory(args[0]);
19 if (!gitDir.existsSync()) printHelp('${gitDir.path} does not exist'); 19 if (!gitDir.existsSync()) printHelp('${gitDir.path} does not exist');
20 if (!new Directory(join(gitDir.path, '.git')).existsSync()) printHelp( 20 if (!new Directory(join(gitDir.path, '.git')).existsSync())
21 '${gitDir.path} does not appear to be a local git repository'); 21 printHelp('${gitDir.path} does not appear to be a local git repository');
22 var branch = args[1]; 22 var branch = args[1];
23 var inputFile = new File(args[2]); 23 var inputFile = new File(args[2]);
24 if (!inputFile.existsSync()) printHelp('${inputFile.path} does not exist'); 24 if (!inputFile.existsSync()) printHelp('${inputFile.path} does not exist');
25 /* 25 /*
26 * Create a new temp directory 26 * Create a new temp directory
27 */ 27 */
28 var tmpDir = new Directory( 28 var tmpDir = new Directory(
29 join(Directory.systemTemp.path, 'analysis_server_perf_target')); 29 join(Directory.systemTemp.path, 'analysis_server_perf_target'));
30 if (!tmpDir.path.contains('tmp')) throw 'invalid tmp directory\n $tmpDir'; 30 if (!tmpDir.path.contains('tmp')) throw 'invalid tmp directory\n $tmpDir';
31 print('Extracting target analysis environment into\n ${tmpDir.path}'); 31 print('Extracting target analysis environment into\n ${tmpDir.path}');
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 print('''Required arguments: <gitDir> <branch> <inputFile> 80 print('''Required arguments: <gitDir> <branch> <inputFile>
81 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
82 branch = the branch containing the initial target source 82 branch = the branch containing the initial target source
83 inputFile = the instrumentation or log file 83 inputFile = the instrumentation or log file
84 84
85 Optional arguments:'''); 85 Optional arguments:''');
86 print(performance.argParser.usage); 86 print(performance.argParser.usage);
87 exit(1); 87 exit(1);
88 } 88 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/plugin/edit/assist/assist_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698