| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:core'; | 7 import 'dart:core'; |
| 8 import 'dart:io' as io; | 8 import 'dart:io' as io; |
| 9 import 'dart:math' show max; | 9 import 'dart:math' show max; |
| 10 | 10 |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 if (_onAnalysisCompleteCompleter != null && !status.isAnalyzing) { | 1286 if (_onAnalysisCompleteCompleter != null && !status.isAnalyzing) { |
| 1287 _onAnalysisCompleteCompleter.complete(); | 1287 _onAnalysisCompleteCompleter.complete(); |
| 1288 _onAnalysisCompleteCompleter = null; | 1288 _onAnalysisCompleteCompleter = null; |
| 1289 } | 1289 } |
| 1290 // Perform on-idle actions. | 1290 // Perform on-idle actions. |
| 1291 if (!status.isAnalyzing) { | 1291 if (!status.isAnalyzing) { |
| 1292 if (generalAnalysisServices | 1292 if (generalAnalysisServices |
| 1293 .contains(GeneralAnalysisService.ANALYZED_FILES)) { | 1293 .contains(GeneralAnalysisService.ANALYZED_FILES)) { |
| 1294 sendAnalysisNotificationAnalyzedFiles(this); | 1294 sendAnalysisNotificationAnalyzedFiles(this); |
| 1295 } | 1295 } |
| 1296 _scheduleAnalysisImplementedNotification(); |
| 1296 } | 1297 } |
| 1297 // Only send status when subscribed. | 1298 // Only send status when subscribed. |
| 1298 if (!serverServices.contains(ServerService.STATUS)) { | 1299 if (!serverServices.contains(ServerService.STATUS)) { |
| 1299 return; | 1300 return; |
| 1300 } | 1301 } |
| 1301 // Only send status when it changes | 1302 // Only send status when it changes |
| 1302 if (statusAnalyzing == status.isAnalyzing) { | 1303 if (statusAnalyzing == status.isAnalyzing) { |
| 1303 return; | 1304 return; |
| 1304 } | 1305 } |
| 1305 statusAnalyzing = status.isAnalyzing; | 1306 statusAnalyzing = status.isAnalyzing; |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2401 /** | 2402 /** |
| 2402 * The [PerformanceTag] for time spent in server request handlers. | 2403 * The [PerformanceTag] for time spent in server request handlers. |
| 2403 */ | 2404 */ |
| 2404 static PerformanceTag serverRequests = server.createChild('requests'); | 2405 static PerformanceTag serverRequests = server.createChild('requests'); |
| 2405 | 2406 |
| 2406 /** | 2407 /** |
| 2407 * The [PerformanceTag] for time spent in split store microtasks. | 2408 * The [PerformanceTag] for time spent in split store microtasks. |
| 2408 */ | 2409 */ |
| 2409 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 2410 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 2410 } | 2411 } |
| OLD | NEW |