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 17 matching lines...) Expand all Loading... |
28 import 'package:analysis_server/src/operation/operation_queue.dart'; | 28 import 'package:analysis_server/src/operation/operation_queue.dart'; |
29 import 'package:analysis_server/src/plugin/notification_manager.dart'; | 29 import 'package:analysis_server/src/plugin/notification_manager.dart'; |
30 import 'package:analysis_server/src/plugin/plugin_manager.dart'; | 30 import 'package:analysis_server/src/plugin/plugin_manager.dart'; |
31 import 'package:analysis_server/src/plugin/plugin_watcher.dart'; | 31 import 'package:analysis_server/src/plugin/plugin_watcher.dart'; |
32 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 32 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
33 import 'package:analysis_server/src/protocol_server.dart' as server; | 33 import 'package:analysis_server/src/protocol_server.dart' as server; |
34 import 'package:analysis_server/src/server/diagnostic_server.dart'; | 34 import 'package:analysis_server/src/server/diagnostic_server.dart'; |
35 import 'package:analysis_server/src/services/correction/namespace.dart'; | 35 import 'package:analysis_server/src/services/correction/namespace.dart'; |
36 import 'package:analysis_server/src/services/index/index.dart'; | 36 import 'package:analysis_server/src/services/index/index.dart'; |
37 import 'package:analysis_server/src/services/search/search_engine.dart'; | 37 import 'package:analysis_server/src/services/search/search_engine.dart'; |
38 import 'package:analysis_server/src/services/search/search_engine_internal2.dart
'; | 38 import 'package:analysis_server/src/services/search/search_engine_internal.dart'
; |
39 import 'package:analysis_server/src/single_context_manager.dart'; | 39 import 'package:analysis_server/src/single_context_manager.dart'; |
40 import 'package:analysis_server/src/utilities/null_string_sink.dart'; | 40 import 'package:analysis_server/src/utilities/null_string_sink.dart'; |
41 import 'package:analyzer/context/context_root.dart'; | 41 import 'package:analyzer/context/context_root.dart'; |
42 import 'package:analyzer/dart/ast/ast.dart'; | 42 import 'package:analyzer/dart/ast/ast.dart'; |
43 import 'package:analyzer/dart/element/element.dart'; | 43 import 'package:analyzer/dart/element/element.dart'; |
44 import 'package:analyzer/exception/exception.dart'; | 44 import 'package:analyzer/exception/exception.dart'; |
45 import 'package:analyzer/file_system/file_system.dart'; | 45 import 'package:analyzer/file_system/file_system.dart'; |
46 import 'package:analyzer/file_system/physical_file_system.dart'; | 46 import 'package:analyzer/file_system/physical_file_system.dart'; |
47 import 'package:analyzer/instrumentation/instrumentation.dart'; | 47 import 'package:analyzer/instrumentation/instrumentation.dart'; |
48 import 'package:analyzer/plugin/resolver_provider.dart'; | 48 import 'package:analyzer/plugin/resolver_provider.dart'; |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // temporary plugin support: | 474 // temporary plugin support: |
475 _onFileChangedController = new StreamController.broadcast(); | 475 _onFileChangedController = new StreamController.broadcast(); |
476 running = true; | 476 running = true; |
477 onAnalysisStarted.first.then((_) { | 477 onAnalysisStarted.first.then((_) { |
478 onAnalysisComplete.then((_) { | 478 onAnalysisComplete.then((_) { |
479 performanceAfterStartup = new ServerPerformance(); | 479 performanceAfterStartup = new ServerPerformance(); |
480 _performance = performanceAfterStartup; | 480 _performance = performanceAfterStartup; |
481 }); | 481 }); |
482 }); | 482 }); |
483 _setupIndexInvalidation(); | 483 _setupIndexInvalidation(); |
484 searchEngine = new SearchEngineImpl2(driverMap.values); | 484 searchEngine = new SearchEngineImpl(driverMap.values); |
485 Notification notification = new ServerConnectedParams(VERSION, io.pid, | 485 Notification notification = new ServerConnectedParams(VERSION, io.pid, |
486 sessionId: instrumentationService.sessionId) | 486 sessionId: instrumentationService.sessionId) |
487 .toNotification(); | 487 .toNotification(); |
488 channel.sendNotification(notification); | 488 channel.sendNotification(notification); |
489 channel.listen(handleRequest, onDone: done, onError: error); | 489 channel.listen(handleRequest, onDone: done, onError: error); |
490 handlers = serverPlugin.createDomains(this); | 490 handlers = serverPlugin.createDomains(this); |
491 } | 491 } |
492 | 492 |
493 /** | 493 /** |
494 * Return the [AnalysisContext]s that are being used to analyze the analysis | 494 * Return the [AnalysisContext]s that are being used to analyze the analysis |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1877 /** | 1877 /** |
1878 * The [PerformanceTag] for time spent in server request handlers. | 1878 * The [PerformanceTag] for time spent in server request handlers. |
1879 */ | 1879 */ |
1880 static PerformanceTag serverRequests = server.createChild('requests'); | 1880 static PerformanceTag serverRequests = server.createChild('requests'); |
1881 | 1881 |
1882 /** | 1882 /** |
1883 * The [PerformanceTag] for time spent in split store microtasks. | 1883 * The [PerformanceTag] for time spent in split store microtasks. |
1884 */ | 1884 */ |
1885 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1885 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
1886 } | 1886 } |
OLD | NEW |