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

Side by Side Diff: pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 years, 2 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 library server.performance.analysis.timing; 5 library server.performance.analysis.timing;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/plugin/protocol/protocol.dart';
11 import 'package:args/args.dart'; 11 import 'package:args/args.dart';
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import '../../test/utils.dart'; 15 import '../../test/utils.dart';
16 import 'performance_tests.dart'; 16 import 'performance_tests.dart';
17 17
18 /** 18 /**
19 * Pass in the directory of the source to be analyzed as option `--source`, 19 * Pass in the directory of the source to be analyzed as option `--source`,
20 * optionally specify a priority file with `--priority` and the specific 20 * optionally specify a priority file with `--priority` and the specific
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 sendAnalysisSetPriorityFiles([priorityFile]); 147 sendAnalysisSetPriorityFiles([priorityFile]);
148 148
149 return analysisFinished.then((_) { 149 return analysisFinished.then((_) {
150 print('analysis completed in ${stopwatch.elapsed}'); 150 print('analysis completed in ${stopwatch.elapsed}');
151 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}')); 151 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}'));
152 stopwatch.reset(); 152 stopwatch.reset();
153 }); 153 });
154 } 154 }
155 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698