OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:analysis_server/protocol/protocol_generated.dart'; | 9 import 'package:analysis_server/protocol/protocol_generated.dart'; |
10 import 'package:analysis_server/src/analysis_server.dart'; | 10 import 'package:analysis_server/src/analysis_server.dart'; |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 : super(site, 'status', 'Status', | 1068 : super(site, 'status', 'Status', |
1069 description: | 1069 description: |
1070 'General status and diagnostics for the analysis server.'); | 1070 'General status and diagnostics for the analysis server.'); |
1071 | 1071 |
1072 @override | 1072 @override |
1073 void generateContent(Map<String, String> params) { | 1073 void generateContent(Map<String, String> params) { |
1074 buf.writeln('<div class="columns">'); | 1074 buf.writeln('<div class="columns">'); |
1075 | 1075 |
1076 buf.writeln('<div class="column one-half">'); | 1076 buf.writeln('<div class="column one-half">'); |
1077 h3('Status'); | 1077 h3('Status'); |
1078 buf.writeln(writeOption( | |
1079 'New analysis driver enabled', server.options.enableNewAnalysisDriver)); | |
1080 buf.writeln(writeOption('Instrumentation enabled', | 1078 buf.writeln(writeOption('Instrumentation enabled', |
1081 AnalysisEngine.instance.instrumentationService.isActive)); | 1079 AnalysisEngine.instance.instrumentationService.isActive)); |
1082 buf.writeln(writeOption('Server process ID', pid)); | 1080 buf.writeln(writeOption('Server process ID', pid)); |
1083 buf.writeln('</div>'); | 1081 buf.writeln('</div>'); |
1084 | 1082 |
1085 buf.writeln('<div class="column one-half">'); | 1083 buf.writeln('<div class="column one-half">'); |
1086 h3('Versions'); | 1084 h3('Versions'); |
1087 buf.writeln(writeOption('Analysis server version', AnalysisServer.VERSION)); | 1085 buf.writeln(writeOption('Analysis server version', AnalysisServer.VERSION)); |
1088 buf.writeln(writeOption('Dart SDK', Platform.version)); | 1086 buf.writeln(writeOption('Dart SDK', Platform.version)); |
1089 buf.writeln('</div>'); | 1087 buf.writeln('</div>'); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 h3('Execution domain'); | 1130 h3('Execution domain'); |
1133 ul(ExecutionService.VALUES, (item) { | 1131 ul(ExecutionService.VALUES, (item) { |
1134 if (domain.onFileAnalyzed != null) { | 1132 if (domain.onFileAnalyzed != null) { |
1135 buf.write('$item (has subscriptions)'); | 1133 buf.write('$item (has subscriptions)'); |
1136 } else { | 1134 } else { |
1137 buf.write('$item (no subscriptions)'); | 1135 buf.write('$item (no subscriptions)'); |
1138 } | 1136 } |
1139 }); | 1137 }); |
1140 } | 1138 } |
1141 } | 1139 } |
OLD | NEW |