| 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');
|
| +}
|
|
|