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

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler.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 | « no previous file | pkg/analysis_server/lib/src/status/get_handler2.dart » ('j') | 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) 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 2509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2520 buffer.write('New analysis driver: '); 2520 buffer.write('New analysis driver: ');
2521 buffer.write(analysisServer.options.enableNewAnalysisDriver); 2521 buffer.write(analysisServer.options.enableNewAnalysisDriver);
2522 buffer.write('<br>'); 2522 buffer.write('<br>');
2523 buffer.write('Instrumentation: '); 2523 buffer.write('Instrumentation: ');
2524 if (AnalysisEngine.instance.instrumentationService.isActive) { 2524 if (AnalysisEngine.instance.instrumentationService.isActive) {
2525 buffer.write('<span style="color:red">Active</span>'); 2525 buffer.write('<span style="color:red">Active</span>');
2526 } else { 2526 } else {
2527 buffer.write('Inactive'); 2527 buffer.write('Inactive');
2528 } 2528 }
2529 buffer.write('<br>'); 2529 buffer.write('<br>');
2530 buffer.write('Version: '); 2530 buffer.write('Server version: ');
2531 buffer.write(AnalysisServer.VERSION); 2531 buffer.write(AnalysisServer.VERSION);
2532 buffer.write('<br>'); 2532 buffer.write('<br>');
2533 buffer.write('SDK: ');
2534 buffer.write(Platform.version);
2535 buffer.write('<br>');
2533 buffer.write('Process ID: '); 2536 buffer.write('Process ID: ');
2534 buffer.write(pid); 2537 buffer.write(pid);
2535 buffer.write('</p>'); 2538 buffer.write('</p>');
2536 2539
2537 buffer.write('<p><b>Performance Data</b></p>'); 2540 buffer.write('<p><b>Performance Data</b></p>');
2538 buffer.write('<p>'); 2541 buffer.write('<p>');
2539 buffer.write(makeLink( 2542 buffer.write(makeLink(
2540 COMMUNICATION_PERFORMANCE_PATH, {}, 'Communication performance')); 2543 COMMUNICATION_PERFORMANCE_PATH, {}, 'Communication performance'));
2541 buffer.write('</p>'); 2544 buffer.write('</p>');
2542 buffer.write('<p>'); 2545 buffer.write('<p>');
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2745 */ 2748 */
2746 static String makeLink( 2749 static String makeLink(
2747 String path, Map<String, String> params, String innerHtml, 2750 String path, Map<String, String> params, String innerHtml,
2748 [bool hasError = false]) { 2751 [bool hasError = false]) {
2749 Uri uri = new Uri(path: path, queryParameters: params); 2752 Uri uri = new Uri(path: path, queryParameters: params);
2750 String href = HTML_ESCAPE.convert(uri.toString()); 2753 String href = HTML_ESCAPE.convert(uri.toString());
2751 String classAttribute = hasError ? ' class="error"' : ''; 2754 String classAttribute = hasError ? ' class="error"' : '';
2752 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2755 return '<a href="$href"$classAttribute>$innerHtml</a>';
2753 } 2756 }
2754 } 2757 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/status/get_handler2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698