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

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

Issue 1219023006: move performance measurement to benchmark/integration (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 5 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/benchmark/integration/input_converter.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 library server.driver; 5 library server.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:math' show max, sqrt; 8 import 'dart:math' show max, sqrt;
9 9
10 import 'package:analyzer/src/generated/engine.dart' as engine; 10 import 'package:analyzer/src/generated/engine.dart' as engine;
11 import 'package:logging/logging.dart'; 11 import 'package:logging/logging.dart';
12 12
13 import '../integration/integration_test_methods.dart'; 13 import '../../test/integration/integration_test_methods.dart';
14 import '../integration/integration_tests.dart'; 14 import '../../test/integration/integration_tests.dart';
15 import 'operation.dart'; 15 import 'operation.dart';
16 16
17 final SPACE = ' '.codeUnitAt(0); 17 final SPACE = ' '.codeUnitAt(0);
18 18
19 void _printColumn(StringBuffer sb, String text, int keyLen, 19 void _printColumn(StringBuffer sb, String text, int keyLen,
20 {bool rightJustified: false}) { 20 {bool rightJustified: false}) {
21 if (!rightJustified) { 21 if (!rightJustified) {
22 sb.write(text); 22 sb.write(text);
23 sb.write(','); 23 sb.write(',');
24 } 24 }
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 int totalUnexpectedResultCount) { 308 int totalUnexpectedResultCount) {
309 StringBuffer sb = new StringBuffer(); 309 StringBuffer sb = new StringBuffer();
310 _printColumn(sb, 'Totals', keyLen); 310 _printColumn(sb, 'Totals', keyLen);
311 _printColumn(sb, totalCount.toString(), 6, rightJustified: true); 311 _printColumn(sb, totalCount.toString(), 6, rightJustified: true);
312 _printColumn(sb, totalErrorCount.toString(), 6, rightJustified: true); 312 _printColumn(sb, totalErrorCount.toString(), 6, rightJustified: true);
313 _printColumn(sb, totalUnexpectedResultCount.toString(), 6, 313 _printColumn(sb, totalUnexpectedResultCount.toString(), 6,
314 rightJustified: true); 314 rightJustified: true);
315 print(sb.toString()); 315 print(sb.toString());
316 } 316 }
317 } 317 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/benchmark/integration/input_converter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698