File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
pkg/analysis_server/lib/src/utilities Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
5
import 'dart:convert' ;
6
+ import 'dart:io' ;
6
7
7
8
import 'package:analysis_server/protocol/protocol.dart' ;
8
9
import 'package:analysis_server/protocol/protocol_generated.dart' ;
@@ -12,6 +13,8 @@ import 'package:analysis_server/src/channel/byte_stream_channel.dart';
12
13
///
13
14
/// All [DateTime] are local, not UTC.
14
15
class RequestStatisticsHelper {
16
+ final String _sdkVersion = Platform .version.split (' ' ).first;
17
+
15
18
final Map <String , _RequestStatistics > _statisticsMap = {};
16
19
17
20
/// The [StringSink] to which performance logger should copy its output.
@@ -167,6 +170,7 @@ class RequestStatisticsHelper {
167
170
'time' : DateTime .now ().millisecondsSinceEpoch,
168
171
'kind' : kind.toJson (),
169
172
'data' : data,
173
+ 'sdkVersion' : _sdkVersion,
170
174
},
171
175
),
172
176
);
You can’t perform that action at this time.
0 commit comments