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

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

Issue 2530273004: Status page for the new analysis driver. (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library analysis_server.src.status.get_handler; 5 library analysis_server.src.status.get_handler;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:math'; 10 import 'dart:math';
(...skipping 2488 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 Set<ServerService> services = analysisServer.serverServices; 2499 Set<ServerService> services = analysisServer.serverServices;
2500 2500
2501 buffer.write('<h3>Server Domain</h3>'); 2501 buffer.write('<h3>Server Domain</h3>');
2502 _writeTwoColumns(buffer, (StringBuffer buffer) { 2502 _writeTwoColumns(buffer, (StringBuffer buffer) {
2503 if (analysisServer == null) { 2503 if (analysisServer == null) {
2504 buffer.write('Status: <span style="color:red">Not running</span>'); 2504 buffer.write('Status: <span style="color:red">Not running</span>');
2505 return; 2505 return;
2506 } 2506 }
2507 buffer.write('<p>'); 2507 buffer.write('<p>');
2508 buffer.write('Status: Running<br>'); 2508 buffer.write('Status: Running<br>');
2509 buffer.write('New analysis driver: ');
2510 buffer.write(analysisServer.options.enableNewAnalysisDriver);
2511 buffer.write('<br>');
2509 buffer.write('Instrumentation: '); 2512 buffer.write('Instrumentation: ');
2510 if (AnalysisEngine.instance.instrumentationService.isActive) { 2513 if (AnalysisEngine.instance.instrumentationService.isActive) {
2511 buffer.write('<span style="color:red">Active</span>'); 2514 buffer.write('<span style="color:red">Active</span>');
2512 } else { 2515 } else {
2513 buffer.write('Inactive'); 2516 buffer.write('Inactive');
2514 } 2517 }
2515 buffer.write('<br>'); 2518 buffer.write('<br>');
2516 buffer.write('Version: '); 2519 buffer.write('Version: ');
2517 buffer.write(AnalysisServer.VERSION); 2520 buffer.write(AnalysisServer.VERSION);
2518 buffer.write('<br>'); 2521 buffer.write('<br>');
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 */ 2734 */
2732 static String makeLink( 2735 static String makeLink(
2733 String path, Map<String, String> params, String innerHtml, 2736 String path, Map<String, String> params, String innerHtml,
2734 [bool hasError = false]) { 2737 [bool hasError = false]) {
2735 Uri uri = new Uri(path: path, queryParameters: params); 2738 Uri uri = new Uri(path: path, queryParameters: params);
2736 String href = HTML_ESCAPE.convert(uri.toString()); 2739 String href = HTML_ESCAPE.convert(uri.toString());
2737 String classAttribute = hasError ? ' class="error"' : ''; 2740 String classAttribute = hasError ? ' class="error"' : '';
2738 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2741 return '<a href="$href"$classAttribute>$innerHtml</a>';
2739 } 2742 }
2740 } 2743 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698