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

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler2.dart

Issue 2661043004: Show the platform version in the analysis server status page. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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:convert'; 5 import 'dart:convert';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:math'; 7 import 'dart:math';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart' hide Element; 9 import 'package:analysis_server/plugin/protocol/protocol.dart' hide Element;
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 buffer.write('New analysis driver: '); 1098 buffer.write('New analysis driver: ');
1099 buffer.write(analysisServer.options.enableNewAnalysisDriver); 1099 buffer.write(analysisServer.options.enableNewAnalysisDriver);
1100 buffer.write('<br>'); 1100 buffer.write('<br>');
1101 buffer.write('Instrumentation: '); 1101 buffer.write('Instrumentation: ');
1102 if (AnalysisEngine.instance.instrumentationService.isActive) { 1102 if (AnalysisEngine.instance.instrumentationService.isActive) {
1103 buffer.write('<span style="color:red">Active</span>'); 1103 buffer.write('<span style="color:red">Active</span>');
1104 } else { 1104 } else {
1105 buffer.write('Inactive'); 1105 buffer.write('Inactive');
1106 } 1106 }
1107 buffer.write('<br>'); 1107 buffer.write('<br>');
1108 buffer.write('Version: '); 1108 buffer.write('Server version: ');
1109 buffer.write(AnalysisServer.VERSION); 1109 buffer.write(AnalysisServer.VERSION);
1110 buffer.write('<br>'); 1110 buffer.write('<br>');
1111 buffer.write('SDK: ');
1112 buffer.write(Platform.version);
1113 buffer.write('<br>');
1111 buffer.write('Process ID: '); 1114 buffer.write('Process ID: ');
1112 buffer.write(pid); 1115 buffer.write(pid);
1113 buffer.write('</p>'); 1116 buffer.write('</p>');
1114 1117
1115 buffer.write('<p><b>Performance Data</b></p>'); 1118 buffer.write('<p><b>Performance Data</b></p>');
1116 buffer.write('<p>'); 1119 buffer.write('<p>');
1117 buffer.write(makeLink( 1120 buffer.write(makeLink(
1118 COMMUNICATION_PERFORMANCE_PATH, {}, 'Communication performance')); 1121 COMMUNICATION_PERFORMANCE_PATH, {}, 'Communication performance'));
1119 buffer.write('</p>'); 1122 buffer.write('</p>');
1120 }, (StringBuffer buffer) { 1123 }, (StringBuffer buffer) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 String path, Map<String, String> params, String innerHtml, 1234 String path, Map<String, String> params, String innerHtml,
1232 [bool hasError = false]) { 1235 [bool hasError = false]) {
1233 Uri uri = params.isEmpty 1236 Uri uri = params.isEmpty
1234 ? new Uri(path: path) 1237 ? new Uri(path: path)
1235 : new Uri(path: path, queryParameters: params); 1238 : new Uri(path: path, queryParameters: params);
1236 String href = HTML_ESCAPE.convert(uri.toString()); 1239 String href = HTML_ESCAPE.convert(uri.toString());
1237 String classAttribute = hasError ? ' class="error"' : ''; 1240 String classAttribute = hasError ? ' class="error"' : '';
1238 return '<a href="$href"$classAttribute>$innerHtml</a>'; 1241 return '<a href="$href"$classAttribute>$innerHtml</a>';
1239 } 1242 }
1240 } 1243 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698