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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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/plugin/protocol/protocol.dart'; 10 import 'package:analysis_server/protocol/protocol_generated.dart';
11 import 'package:args/args.dart'; 11 import 'package:args/args.dart';
12 import 'package:test/test.dart'; 12 import 'package:test/test.dart';
13 13
14 import 'performance_tests.dart'; 14 import 'performance_tests.dart';
15 15
16 /** 16 /**
17 * Pass in the directory of the source to be analyzed as option `--source`, 17 * Pass in the directory of the source to be analyzed as option `--source`,
18 * optionally specify a priority file with `--priority` and the specific 18 * optionally specify a priority file with `--priority` and the specific
19 * test to run with `--metric`. If no test is specified, the default is 19 * test to run with `--metric`. If no test is specified, the default is
20 * `analysis`. 20 * `analysis`.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 sendAnalysisSetPriorityFiles([priorityFile]); 155 sendAnalysisSetPriorityFiles([priorityFile]);
156 156
157 await analysisFinished; 157 await analysisFinished;
158 print('analysis completed in ${stopwatch.elapsed}'); 158 print('analysis completed in ${stopwatch.elapsed}');
159 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}')); 159 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}'));
160 160
161 await shutdown(); 161 await shutdown();
162 } 162 }
163 } 163 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/benchmark/integration/operation.dart ('k') | pkg/analysis_server/benchmark/perf/benchmark_flutter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698