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

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

Issue 1415573012: Add Server PID to Server Status page. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | 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) 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:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1758 buffer.write('Status: Running<br>'); 1758 buffer.write('Status: Running<br>');
1759 buffer.write('Instrumentation: '); 1759 buffer.write('Instrumentation: ');
1760 if (AnalysisEngine.instance.instrumentationService.isActive) { 1760 if (AnalysisEngine.instance.instrumentationService.isActive) {
1761 buffer.write('<span style="color:red">Active</span>'); 1761 buffer.write('<span style="color:red">Active</span>');
1762 } else { 1762 } else {
1763 buffer.write('Inactive'); 1763 buffer.write('Inactive');
1764 } 1764 }
1765 buffer.write('<br>'); 1765 buffer.write('<br>');
1766 buffer.write('Version: '); 1766 buffer.write('Version: ');
1767 buffer.write(AnalysisServer.VERSION); 1767 buffer.write(AnalysisServer.VERSION);
1768 buffer.write('<br>');
1769 buffer.write('Process ID: ');
1770 buffer.write(pid);
1768 buffer.write('</p>'); 1771 buffer.write('</p>');
1769 1772
1770 buffer.write('<p><b>Performance Data</b></p>'); 1773 buffer.write('<p><b>Performance Data</b></p>');
1771 buffer.write('<p>'); 1774 buffer.write('<p>');
1772 buffer.write(makeLink( 1775 buffer.write(makeLink(
1773 COMMUNICATION_PERFORMANCE_PATH, {}, 'Communication performance')); 1776 COMMUNICATION_PERFORMANCE_PATH, {}, 'Communication performance'));
1774 buffer.write('</p>'); 1777 buffer.write('</p>');
1775 }, (StringBuffer buffer) { 1778 }, (StringBuffer buffer) {
1776 _writeSubscriptionList(buffer, ServerService.VALUES, services); 1779 _writeSubscriptionList(buffer, ServerService.VALUES, services);
1777 }); 1780 });
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 */ 1970 */
1968 static String makeLink( 1971 static String makeLink(
1969 String path, Map<String, String> params, String innerHtml, 1972 String path, Map<String, String> params, String innerHtml,
1970 [bool hasError = false]) { 1973 [bool hasError = false]) {
1971 Uri uri = new Uri(path: path, queryParameters: params); 1974 Uri uri = new Uri(path: path, queryParameters: params);
1972 String href = HTML_ESCAPE.convert(uri.toString()); 1975 String href = HTML_ESCAPE.convert(uri.toString());
1973 String classAttribute = hasError ? ' class="error"' : ''; 1976 String classAttribute = hasError ? ' class="error"' : '';
1974 return '<a href="$href"$classAttribute>$innerHtml</a>'; 1977 return '<a href="$href"$classAttribute>$innerHtml</a>';
1975 } 1978 }
1976 } 1979 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698