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

Unified Diff: pkg/analysis_server/lib/src/socket_server.dart

Issue 787763004: Hooks for instrumentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/test/analysis_abstract.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/socket_server.dart
diff --git a/pkg/analysis_server/lib/src/socket_server.dart b/pkg/analysis_server/lib/src/socket_server.dart
index 7b78ecbf814d1f43b0ac933ac2baaa202e8cc05c..12337a89b44b7c8c60a65ff5fa843cf5a9deafe3 100644
--- a/pkg/analysis_server/lib/src/socket_server.dart
+++ b/pkg/analysis_server/lib/src/socket_server.dart
@@ -16,6 +16,7 @@ import 'package:analysis_server/src/search/search_domain.dart';
import 'package:analysis_server/src/services/index/index.dart';
import 'package:analysis_server/src/services/index/local_file_index.dart';
import 'package:analyzer/file_system/physical_file_system.dart';
+import 'package:analyzer/instrumentation/instrumentation.dart';
import 'package:analyzer/source/pub_package_map_provider.dart';
import 'package:analyzer/src/generated/sdk_io.dart';
@@ -39,6 +40,7 @@ Index _createIndex() {
class SocketServer {
final AnalysisServerOptions analysisServerOptions;
final DirectoryBasedDartSdk defaultSdk;
+ final InstrumentationServer instrumentationServer;
/**
* The analysis server that was created when a client established a
@@ -46,7 +48,8 @@ class SocketServer {
*/
AnalysisServer analysisServer;
- SocketServer(this.analysisServerOptions, this.defaultSdk);
+ SocketServer(this.analysisServerOptions, this.defaultSdk,
+ this.instrumentationServer);
/**
* Create an analysis server which will communicate with the client using the
@@ -72,6 +75,7 @@ class SocketServer {
_createIndex(),
analysisServerOptions,
defaultSdk,
+ instrumentationServer,
rethrowExceptions: false);
_initializeHandlers(analysisServer);
}
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/test/analysis_abstract.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698