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

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

Issue 2091883002: Add '--finer-grained-invalidation' option to Analysis Server. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/server/driver.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:io' as io; 10 import 'dart:io' as io;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 bool useSingleContextManager: false, 324 bool useSingleContextManager: false,
325 this.rethrowExceptions: true}) 325 this.rethrowExceptions: true})
326 : index = _index, 326 : index = _index,
327 searchEngine = _index != null ? new SearchEngineImpl(_index) : null { 327 searchEngine = _index != null ? new SearchEngineImpl(_index) : null {
328 _performance = performanceDuringStartup; 328 _performance = performanceDuringStartup;
329 defaultContextOptions.incremental = true; 329 defaultContextOptions.incremental = true;
330 defaultContextOptions.incrementalApi = 330 defaultContextOptions.incrementalApi =
331 options.enableIncrementalResolutionApi; 331 options.enableIncrementalResolutionApi;
332 defaultContextOptions.incrementalValidation = 332 defaultContextOptions.incrementalValidation =
333 options.enableIncrementalResolutionValidation; 333 options.enableIncrementalResolutionValidation;
334 defaultContextOptions.finerGrainedInvalidation =
335 options.finerGrainedInvalidation;
334 defaultContextOptions.generateImplicitErrors = false; 336 defaultContextOptions.generateImplicitErrors = false;
335 operationQueue = new ServerOperationQueue(); 337 operationQueue = new ServerOperationQueue();
336 sdkManager = new DartSdkManager(defaultSdkCreator); 338 sdkManager = new DartSdkManager(defaultSdkCreator);
337 if (useSingleContextManager) { 339 if (useSingleContextManager) {
338 contextManager = new SingleContextManager(resourceProvider, sdkManager, 340 contextManager = new SingleContextManager(resourceProvider, sdkManager,
339 packageResolverProvider, analyzedFilesGlobs, defaultContextOptions); 341 packageResolverProvider, analyzedFilesGlobs, defaultContextOptions);
340 } else { 342 } else {
341 contextManager = new ContextManagerImpl( 343 contextManager = new ContextManagerImpl(
342 resourceProvider, 344 resourceProvider,
343 sdkManager, 345 sdkManager,
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 for (AnalysisContext context in event.removed) { 1507 for (AnalysisContext context in event.removed) {
1506 index.removeContext(context); 1508 index.removeContext(context);
1507 } 1509 }
1508 }); 1510 });
1509 } 1511 }
1510 } 1512 }
1511 1513
1512 class AnalysisServerOptions { 1514 class AnalysisServerOptions {
1513 bool enableIncrementalResolutionApi = false; 1515 bool enableIncrementalResolutionApi = false;
1514 bool enableIncrementalResolutionValidation = false; 1516 bool enableIncrementalResolutionValidation = false;
1517 bool finerGrainedInvalidation = false;
1515 bool noErrorNotification = false; 1518 bool noErrorNotification = false;
1516 bool noIndex = false; 1519 bool noIndex = false;
1517 bool useAnalysisHighlight2 = false; 1520 bool useAnalysisHighlight2 = false;
1518 String fileReadMode = 'as-is'; 1521 String fileReadMode = 'as-is';
1519 } 1522 }
1520 1523
1521 /** 1524 /**
1522 * Information about a file - an [AnalysisContext] that analyses the file, 1525 * Information about a file - an [AnalysisContext] that analyses the file,
1523 * and the [Source] representing the file in this context. 1526 * and the [Source] representing the file in this context.
1524 */ 1527 */
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 /** 1754 /**
1752 * The [PerformanceTag] for time spent in server request handlers. 1755 * The [PerformanceTag] for time spent in server request handlers.
1753 */ 1756 */
1754 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1757 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1755 1758
1756 /** 1759 /**
1757 * The [PerformanceTag] for time spent in split store microtasks. 1760 * The [PerformanceTag] for time spent in split store microtasks.
1758 */ 1761 */
1759 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1762 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1760 } 1763 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698