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

Side by Side Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 1926763002: Fixes for SingleContextManager after experiments with two big codebases. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/single_context_manager.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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' hide Resource; 9 import 'dart:core' hide Resource;
10 import 'dart:math' show max; 10 import 'dart:math' show max;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 defaultContextOptions.incremental = true; 323 defaultContextOptions.incremental = true;
324 defaultContextOptions.incrementalApi = 324 defaultContextOptions.incrementalApi =
325 options.enableIncrementalResolutionApi; 325 options.enableIncrementalResolutionApi;
326 defaultContextOptions.incrementalValidation = 326 defaultContextOptions.incrementalValidation =
327 options.enableIncrementalResolutionValidation; 327 options.enableIncrementalResolutionValidation;
328 defaultContextOptions.generateImplicitErrors = false; 328 defaultContextOptions.generateImplicitErrors = false;
329 operationQueue = new ServerOperationQueue(); 329 operationQueue = new ServerOperationQueue();
330 sdkManager = new DartSdkManager(defaultSdkCreator); 330 sdkManager = new DartSdkManager(defaultSdkCreator);
331 if (useSingleContextManager) { 331 if (useSingleContextManager) {
332 contextManager = new SingleContextManager(resourceProvider, sdkManager, 332 contextManager = new SingleContextManager(resourceProvider, sdkManager,
333 () => packageResolverProvider(null), analyzedFilesGlobs); 333 packageResolverProvider, analyzedFilesGlobs, defaultContextOptions);
334 } else { 334 } else {
335 contextManager = new ContextManagerImpl( 335 contextManager = new ContextManagerImpl(
336 resourceProvider, 336 resourceProvider,
337 sdkManager, 337 sdkManager,
338 packageResolverProvider, 338 packageResolverProvider,
339 embeddedResolverProvider, 339 embeddedResolverProvider,
340 packageMapProvider, 340 packageMapProvider,
341 analyzedFilesGlobs, 341 analyzedFilesGlobs,
342 instrumentationService, 342 instrumentationService,
343 defaultContextOptions); 343 defaultContextOptions);
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 /** 1765 /**
1766 * The [PerformanceTag] for time spent in server request handlers. 1766 * The [PerformanceTag] for time spent in server request handlers.
1767 */ 1767 */
1768 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1768 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1769 1769
1770 /** 1770 /**
1771 * The [PerformanceTag] for time spent in split store microtasks. 1771 * The [PerformanceTag] for time spent in split store microtasks.
1772 */ 1772 */
1773 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1773 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1774 } 1774 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/single_context_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698