| OLD | NEW |
| 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:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 _writeRow(response, [ | 83 _writeRow(response, [ |
| 84 '<a href="#context_$key">$key</a>', | 84 '<a href="#context_$key">$key</a>', |
| 85 errorCount, | 85 errorCount, |
| 86 flushedCount, | 86 flushedCount, |
| 87 inProcessCount, | 87 inProcessCount, |
| 88 invalidCount, | 88 invalidCount, |
| 89 validCount]); | 89 validCount]); |
| 90 }); | 90 }); |
| 91 response.write('</table>'); | 91 response.write('</table>'); |
| 92 _server.analysisServer.contextMap.forEach((String key, AnalysisContext con
text) { | 92 _server.analysisServer.contextMap.forEach((String key, AnalysisContext con
text) { |
| 93 response.write('<h2><a name="context_$key">Analysis Context: $key}</a></
h2>'); | 93 response.write('<h2><a name="context_$key">Analysis Context: $key</a></h
2>'); |
| 94 AnalysisContentStatistics statistics = (context as AnalysisContextImpl).
statistics; | 94 AnalysisContentStatistics statistics = (context as AnalysisContextImpl).
statistics; |
| 95 response.write('<table>'); | 95 response.write('<table>'); |
| 96 _writeRow( | 96 _writeRow( |
| 97 response, | 97 response, |
| 98 ['Item', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'], | 98 ['Item', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'], |
| 99 true); | 99 true); |
| 100 statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) { | 100 statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) { |
| 101 _writeRow( | 101 _writeRow( |
| 102 response, | 102 response, |
| 103 [row.name, | 103 [row.name, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 response.write(value); | 150 response.write(value); |
| 151 response.write('</td>'); | 151 response.write('</td>'); |
| 152 }); | 152 }); |
| 153 if (header) { | 153 if (header) { |
| 154 response.write('</th>'); | 154 response.write('</th>'); |
| 155 } else { | 155 } else { |
| 156 response.write('</tr>'); | 156 response.write('</tr>'); |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 } | 159 } |
| OLD | NEW |