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

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

Issue 2081483002: Analysis and completion benchmarks with a set of local uses. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Separate scenarios from actual local benchmarks. Created 4 years, 6 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 | « pkg/analysis_server/benchmark/perf/benchmark_scenario.dart ('k') | no next file » | 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.performance; 5 library server.performance;
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/plugin/protocol/protocol.dart';
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return serverConnected.future; 54 return serverConnected.future;
55 }); 55 });
56 } 56 }
57 57
58 /** 58 /**
59 * After every test, the server is stopped. 59 * After every test, the server is stopped.
60 */ 60 */
61 Future shutdown() async => await shutdownIfNeeded(); 61 Future shutdown() async => await shutdownIfNeeded();
62 62
63 /** 63 /**
64 * Enable [SERVER_STATUS] notifications so that [analysisFinished] 64 * Enable [ServerService.STATUS] notifications so that [analysisFinished]
65 * can be used. 65 * can be used.
66 */ 66 */
67 Future subscribeToStatusNotifications() { 67 Future subscribeToStatusNotifications() async {
68 List<Future> futures = <Future>[]; 68 await sendServerSetSubscriptions([ServerService.STATUS]);
69 futures.add(sendServerSetSubscriptions([ServerService.STATUS]));
70 return Future.wait(futures);
71 } 69 }
72 } 70 }
73 71
74 class AbstractTimingTest extends AbstractAnalysisServerPerformanceTest { 72 class AbstractTimingTest extends AbstractAnalysisServerPerformanceTest {
75 Future init(String source) async { 73 Future init(String source) async {
76 await super.setUp(); 74 await super.setUp();
77 sourceDirectory = new Directory(source); 75 sourceDirectory = new Directory(source);
78 return subscribeToStatusNotifications(); 76 return subscribeToStatusNotifications();
79 } 77 }
80 } 78 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/benchmark/perf/benchmark_scenario.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698