| 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 analysis.server; | 5 library analysis.server; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:core'; | 9 import 'dart:core'; |
| 10 import 'dart:io' as io; | 10 import 'dart:io' as io; |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 defaultContextOptions.incrementalValidation = | 362 defaultContextOptions.incrementalValidation = |
| 363 options.enableIncrementalResolutionValidation; | 363 options.enableIncrementalResolutionValidation; |
| 364 defaultContextOptions.finerGrainedInvalidation = | 364 defaultContextOptions.finerGrainedInvalidation = |
| 365 options.finerGrainedInvalidation; | 365 options.finerGrainedInvalidation; |
| 366 defaultContextOptions.generateImplicitErrors = false; | 366 defaultContextOptions.generateImplicitErrors = false; |
| 367 operationQueue = new ServerOperationQueue(); | 367 operationQueue = new ServerOperationQueue(); |
| 368 _analysisPerformanceLogger = new nd.PerformanceLog(io.stdout); | 368 _analysisPerformanceLogger = new nd.PerformanceLog(io.stdout); |
| 369 byteStore = new MemoryCachingByteStore( | 369 byteStore = new MemoryCachingByteStore( |
| 370 new FileByteStore( | 370 new FileByteStore( |
| 371 resourceProvider.getStateLocation('.analysis-driver')), | 371 resourceProvider.getStateLocation('.analysis-driver')), |
| 372 1024); | 372 64 * 1024 * 1024); |
| 373 analysisDriverScheduler = new nd.AnalysisDriverScheduler(_analysisPerformanc
eLogger); | 373 analysisDriverScheduler = |
| 374 new nd.AnalysisDriverScheduler(_analysisPerformanceLogger); |
| 374 analysisDriverScheduler.start(); | 375 analysisDriverScheduler.start(); |
| 375 if (useSingleContextManager) { | 376 if (useSingleContextManager) { |
| 376 contextManager = new SingleContextManager(resourceProvider, sdkManager, | 377 contextManager = new SingleContextManager(resourceProvider, sdkManager, |
| 377 packageResolverProvider, analyzedFilesGlobs, defaultContextOptions); | 378 packageResolverProvider, analyzedFilesGlobs, defaultContextOptions); |
| 378 } else { | 379 } else { |
| 379 contextManager = new ContextManagerImpl( | 380 contextManager = new ContextManagerImpl( |
| 380 resourceProvider, | 381 resourceProvider, |
| 381 sdkManager, | 382 sdkManager, |
| 382 packageResolverProvider, | 383 packageResolverProvider, |
| 383 packageMapProvider, | 384 packageMapProvider, |
| (...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2017 /** | 2018 /** |
| 2018 * The [PerformanceTag] for time spent in server request handlers. | 2019 * The [PerformanceTag] for time spent in server request handlers. |
| 2019 */ | 2020 */ |
| 2020 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 2021 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
| 2021 | 2022 |
| 2022 /** | 2023 /** |
| 2023 * The [PerformanceTag] for time spent in split store microtasks. | 2024 * The [PerformanceTag] for time spent in split store microtasks. |
| 2024 */ | 2025 */ |
| 2025 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 2026 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 2026 } | 2027 } |
| OLD | NEW |