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

Unified Diff: pkg/analysis_server/lib/src/get_handler.dart

Issue 298823007: add server.status notification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove print statement Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/get_handler.dart b/pkg/analysis_server/lib/src/get_handler.dart
index 12b4f30579c334489157dd4eb157709d43c637d0..ce8ad00b6c966dd60d5b9edbf888de31d10aca23 100644
--- a/pkg/analysis_server/lib/src/get_handler.dart
+++ b/pkg/analysis_server/lib/src/get_handler.dart
@@ -68,14 +68,14 @@ class GetHandler {
true);
// TODO(scheglov) replace with using folder based contexts
_server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
- AnalysisContextStatistics statistics =
+ AnalysisContentStatistics statistics =
(context as AnalysisContextImpl).statistics;
int errorCount = 0;
int flushedCount = 0;
int inProcessCount = 0;
int invalidCount = 0;
int validCount = 0;
- statistics.cacheRows.forEach((AnalysisContextStatistics_CacheRow row) {
+ statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
errorCount += row.errorCount;
flushedCount += row.flushedCount;
inProcessCount += row.inProcessCount;
@@ -93,13 +93,13 @@ class GetHandler {
response.write('</table>');
_server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
response.write('<h2><a name="context_$key">Analysis Context: $key</a></h2>');
- AnalysisContextStatistics statistics = (context as AnalysisContextImpl).statistics;
+ AnalysisContentStatistics statistics = (context as AnalysisContextImpl).statistics;
response.write('<table>');
_writeRow(
response,
['Item', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
true);
- statistics.cacheRows.forEach((AnalysisContextStatistics_CacheRow row) {
+ statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
_writeRow(
response,
[row.name,
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698