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

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

Issue 892843005: Add link to performance data (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
« 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.get_handler; 5 library analysis_server.src.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 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 buffer.write('Instrumentation: '); 1407 buffer.write('Instrumentation: ');
1408 if (AnalysisEngine.instance.instrumentationService.isActive) { 1408 if (AnalysisEngine.instance.instrumentationService.isActive) {
1409 buffer.write('<span style="color:red">Active</span>'); 1409 buffer.write('<span style="color:red">Active</span>');
1410 } else { 1410 } else {
1411 buffer.write('Inactive'); 1411 buffer.write('Inactive');
1412 } 1412 }
1413 buffer.write('<br>'); 1413 buffer.write('<br>');
1414 buffer.write('Version: '); 1414 buffer.write('Version: ');
1415 buffer.write(AnalysisServer.VERSION); 1415 buffer.write(AnalysisServer.VERSION);
1416 buffer.write('</p>'); 1416 buffer.write('</p>');
1417
1418 buffer.write('<p><b>Performance Data</b></p>');
1419 buffer.write('<p>');
1420 buffer.write(
1421 _makeLink(PERFORMANCE_PATH, {}, 'Communication performance'));
1422 buffer.write('</p>');
1417 }, (StringBuffer buffer) { 1423 }, (StringBuffer buffer) {
1418 _writeSubscriptionList(buffer, ServerService.VALUES, services); 1424 _writeSubscriptionList(buffer, ServerService.VALUES, services);
1419 }); 1425 });
1420 return true; 1426 return true;
1421 } 1427 }
1422 1428
1423 /** 1429 /**
1424 * Write a representation of the given [stackTrace] to the given [buffer]. 1430 * Write a representation of the given [stackTrace] to the given [buffer].
1425 */ 1431 */
1426 void _writeStackTrace(StringBuffer buffer, StackTrace stackTrace) { 1432 void _writeStackTrace(StringBuffer buffer, StackTrace stackTrace) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 } else if (value is Element) { 1552 } else if (value is Element) {
1547 String link = 1553 String link =
1548 _makeLink(ELEMENT_PATH, linkParameters, value.runtimeType.toString()); 1554 _makeLink(ELEMENT_PATH, linkParameters, value.runtimeType.toString());
1549 buffer.write('<i>$link</i>'); 1555 buffer.write('<i>$link</i>');
1550 } else { 1556 } else {
1551 buffer.write(HTML_ESCAPE.convert(value.toString())); 1557 buffer.write(HTML_ESCAPE.convert(value.toString()));
1552 buffer.write(' <i>(${value.runtimeType.toString()})</i>'); 1558 buffer.write(' <i>(${value.runtimeType.toString()})</i>');
1553 } 1559 }
1554 } 1560 }
1555 } 1561 }
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