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

Side by Side Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 2359233002: Add support for getting the sessionId from instrumentation and sending it to the client (Closed)
Patch Set: Created 4 years, 3 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core'; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 running = true; 369 running = true;
370 onAnalysisStarted.first.then((_) { 370 onAnalysisStarted.first.then((_) {
371 onAnalysisComplete.then((_) { 371 onAnalysisComplete.then((_) {
372 performanceAfterStartup = new ServerPerformance(); 372 performanceAfterStartup = new ServerPerformance();
373 _performance = performanceAfterStartup; 373 _performance = performanceAfterStartup;
374 }); 374 });
375 }); 375 });
376 _setupIndexInvalidation(); 376 _setupIndexInvalidation();
377 pubSummaryManager = 377 pubSummaryManager =
378 new PubSummaryManager(resourceProvider, '${io.pid}.temp'); 378 new PubSummaryManager(resourceProvider, '${io.pid}.temp');
379 Notification notification = 379 Notification notification = new ServerConnectedParams(VERSION, io.pid,
380 new ServerConnectedParams(VERSION, io.pid).toNotification(); 380 sessionId: instrumentationService.sessionId)
381 .toNotification();
381 channel.sendNotification(notification); 382 channel.sendNotification(notification);
382 channel.listen(handleRequest, onDone: done, onError: error); 383 channel.listen(handleRequest, onDone: done, onError: error);
383 handlers = serverPlugin.createDomains(this); 384 handlers = serverPlugin.createDomains(this);
384 } 385 }
385 386
386 /** 387 /**
387 * Return the [AnalysisContext]s that are being used to analyze the analysis 388 * Return the [AnalysisContext]s that are being used to analyze the analysis
388 * roots. 389 * roots.
389 */ 390 */
390 Iterable<AnalysisContext> get analysisContexts => 391 Iterable<AnalysisContext> get analysisContexts =>
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 /** 1793 /**
1793 * The [PerformanceTag] for time spent in server request handlers. 1794 * The [PerformanceTag] for time spent in server request handlers.
1794 */ 1795 */
1795 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1796 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1796 1797
1797 /** 1798 /**
1798 * The [PerformanceTag] for time spent in split store microtasks. 1799 * The [PerformanceTag] for time spent in split store microtasks.
1799 */ 1800 */
1800 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1801 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1801 } 1802 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698