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

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

Issue 943723002: Return version with connected notification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Touched missed Java files Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index feec4d41cb526b74d73cb61972ce4db0774f05a9..1f58eb92a58e4a8d99331c403d3e7b941bd50479 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -68,7 +68,7 @@ class AnalysisServer {
* The version of the analysis server. The value should be replaced
* automatically during the build.
*/
- static final String VERSION = '1.1.0';
+ static final String VERSION = '1.3.0';
/**
* The number of milliseconds to perform operations before inserting
@@ -269,7 +269,8 @@ class AnalysisServer {
_performance = performanceAfterStartup;
});
});
- Notification notification = new ServerConnectedParams().toNotification();
+ Notification notification =
+ new ServerConnectedParams(VERSION).toNotification();
channel.sendNotification(notification);
channel.listen(handleRequest, onDone: done, onError: error);
}
@@ -1252,41 +1253,6 @@ class ServerContextManager extends ContextManager {
/**
- * Container with global [AnalysisServer] performance statistics.
- */
-class ServerPerformanceStatistics {
- /**
- * The [PerformanceTag] for time spent in
- * PerformAnalysisOperation._updateIndex.
- */
- static PerformanceTag index = new PerformanceTag('index');
-
- /**
- * The [PerformanceTag] for time spent in
- * PerformAnalysisOperation._sendNotices.
- */
- static PerformanceTag notices = new PerformanceTag('notices');
-
- /**
- * The [PerformanceTag] for time spent performing a _DartIndexOperation.
- */
- static PerformanceTag indexOperation = new PerformanceTag('indexOperation');
-
- /**
- * The [PerformanceTag] for time spent between calls to
- * AnalysisServer.performOperation when the server is not idle.
- */
- static PerformanceTag intertask = new PerformanceTag('intertask');
-
- /**
- * The [PerformanceTag] for time spent between calls to
- * AnalysisServer.performOperation when the server is idle.
- */
- static PerformanceTag idle = new PerformanceTag('idle');
-}
-
-
-/**
* A class used by [AnalysisServer] to record performance information
* such as request latency.
*/
@@ -1335,3 +1301,38 @@ class ServerPerformance {
}
}
}
+
+
+/**
+ * Container with global [AnalysisServer] performance statistics.
+ */
+class ServerPerformanceStatistics {
+ /**
+ * The [PerformanceTag] for time spent in
+ * PerformAnalysisOperation._updateIndex.
+ */
+ static PerformanceTag index = new PerformanceTag('index');
+
+ /**
+ * The [PerformanceTag] for time spent in
+ * PerformAnalysisOperation._sendNotices.
+ */
+ static PerformanceTag notices = new PerformanceTag('notices');
+
+ /**
+ * The [PerformanceTag] for time spent performing a _DartIndexOperation.
+ */
+ static PerformanceTag indexOperation = new PerformanceTag('indexOperation');
+
+ /**
+ * The [PerformanceTag] for time spent between calls to
+ * AnalysisServer.performOperation when the server is not idle.
+ */
+ static PerformanceTag intertask = new PerformanceTag('intertask');
+
+ /**
+ * The [PerformanceTag] for time spent between calls to
+ * AnalysisServer.performOperation when the server is idle.
+ */
+ static PerformanceTag idle = new PerformanceTag('idle');
+}
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698