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

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

Issue 847963003: Add indication of instrumentation active/inactive to analysis server status. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
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 get.handler; 5 library get.handler;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:math'; 9 import 'dart:math';
10 10
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 response.write('<h1>Analysis Server</h1>'); 389 response.write('<h1>Analysis Server</h1>');
390 AnalysisServer analysisServer = _server.analysisServer; 390 AnalysisServer analysisServer = _server.analysisServer;
391 if (analysisServer == null) { 391 if (analysisServer == null) {
392 response.write('<p>Not running</p>'); 392 response.write('<p>Not running</p>');
393 } else { 393 } else {
394 if (analysisServer.statusAnalyzing) { 394 if (analysisServer.statusAnalyzing) {
395 response.write('<p>Running (analyzing)</p>'); 395 response.write('<p>Running (analyzing)</p>');
396 } else { 396 } else {
397 response.write('<p>Running (not analyzing)</p>'); 397 response.write('<p>Running (not analyzing)</p>');
398 } 398 }
399 response.write('<p>Instrumentation status: ');
400 if (AnalysisEngine.instance.instrumentationService.isActive) {
401 response.write('<span style="color:red">active</span>');
402 } else {
403 response.write('inactive');
404 }
405 response.write('</p>');
399 response.write('<h1>Analysis Contexts</h1>'); 406 response.write('<h1>Analysis Contexts</h1>');
400 response.write('<h2>Summary</h2>'); 407 response.write('<h2>Summary</h2>');
401 response.write('<table>'); 408 response.write('<table>');
402 List headerRowText = ['Context']; 409 List headerRowText = ['Context'];
403 headerRowText.addAll(CacheState.values); 410 headerRowText.addAll(CacheState.values);
404 _writeRow(response, headerRowText, header: true); 411 _writeRow(response, headerRowText, header: true);
405 Map<Folder, AnalysisContext> folderMap = analysisServer.folderMap; 412 Map<Folder, AnalysisContext> folderMap = analysisServer.folderMap;
406 List<Folder> folders = folderMap.keys.toList(); 413 List<Folder> folders = folderMap.keys.toList();
407 folders.sort( 414 folders.sort(
408 (Folder first, Folder second) => first.shortName.compareTo(second.shor tName)); 415 (Folder first, Folder second) => first.shortName.compareTo(second.shor tName));
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 if (header) { 590 if (header) {
584 response.write('</th>'); 591 response.write('</th>');
585 } else { 592 } else {
586 response.write('</td>'); 593 response.write('</td>');
587 } 594 }
588 } 595 }
589 596
590 response.write('</tr>'); 597 response.write('</tr>');
591 } 598 }
592 } 599 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698