Chromium Code Reviews| Index: pkg/analyzer/lib/instrumentation/instrumentation.dart |
| diff --git a/pkg/analyzer/lib/instrumentation/instrumentation.dart b/pkg/analyzer/lib/instrumentation/instrumentation.dart |
| index 1d890eb3675ec19c4338ef17b759e4d9c70d38bf..de5421cf5b35fc6d4040fce01e962da2b8b30d48 100644 |
| --- a/pkg/analyzer/lib/instrumentation/instrumentation.dart |
| +++ b/pkg/analyzer/lib/instrumentation/instrumentation.dart |
| @@ -61,6 +61,7 @@ class InstrumentationService { |
| static const String TAG_PERFORMANCE = 'Perf'; |
| static const String TAG_REQUEST = 'Req'; |
| static const String TAG_RESPONSE = 'Res'; |
| + static const String TAG_STARTUP = 'Startup'; |
|
Brian Wilkerson
2015/01/16 19:48:28
This is what "TAG_VERSION" was added for.
danrubel
2015/01/20 17:23:54
Good to know. Switched to using that instead.
|
| static const String TAG_VERSION = 'Ver'; |
| /** |
| @@ -178,6 +179,29 @@ class InstrumentationService { |
| } |
| /** |
| + * Signal that the client has started analysis server. |
| + * This method should be invoked exactly one time. |
| + */ |
| + void logVersion(String uuid, String clientId, String clientVersion, |
| + String serverVersion, String sdkVersion) { |
| + |
| + String normalize(String value) => |
| + value != null && value.length > 0 ? value : 'unknown'; |
| + |
| + if (_instrumentationServer != null) { |
| + _instrumentationServer.logWithPriority( |
| + _join( |
| + [ |
| + TAG_STARTUP, |
| + uuid, |
| + normalize(clientId), |
| + normalize(clientVersion), |
| + serverVersion, |
| + sdkVersion])); |
| + } |
| + } |
| + |
| + /** |
| * Signal that the client is done communicating with the instrumentation |
| * server. This method should be invoked exactly one time and no other methods |
| * should be invoked on this instance after this method has been invoked. |