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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2917183003: update the analyzer and analysis server perf tags (Closed)
Patch Set: updates for review comments Created 3 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
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 analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 10
(...skipping 2534 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 * Return the source that was removed while it was being analyzed. 2545 * Return the source that was removed while it was being analyzed.
2546 */ 2546 */
2547 Source get source => _source; 2547 Source get source => _source;
2548 } 2548 }
2549 2549
2550 /** 2550 /**
2551 * Container with global [AnalysisContext] performance statistics. 2551 * Container with global [AnalysisContext] performance statistics.
2552 */ 2552 */
2553 class PerformanceStatistics { 2553 class PerformanceStatistics {
2554 /** 2554 /**
2555 * The [PerformanceTag] for `package:analyzer`.
2556 */
2557 static PerformanceTag analyzer = new PerformanceTag('analyzer');
2558
2559 /**
2555 * The [PerformanceTag] for time spent in reading files. 2560 * The [PerformanceTag] for time spent in reading files.
2556 */ 2561 */
2557 static PerformanceTag io = new PerformanceTag('io'); 2562 static PerformanceTag io = analyzer.createChild('io');
2563
2564 /**
2565 * The [PerformanceTag] for general phases of analysis.
2566 */
2567 static PerformanceTag analysis = analyzer.createChild('analysis');
2558 2568
2559 /** 2569 /**
2560 * The [PerformanceTag] for time spent in scanning. 2570 * The [PerformanceTag] for time spent in scanning.
2561 */ 2571 */
2562 static PerformanceTag scan = new PerformanceTag('scan'); 2572 static PerformanceTag scan = analyzer.createChild('scan');
2563 2573
2564 /** 2574 /**
2565 * The [PerformanceTag] for time spent in parsing. 2575 * The [PerformanceTag] for time spent in parsing.
2566 */ 2576 */
2567 static PerformanceTag parse = new PerformanceTag('parse'); 2577 static PerformanceTag parse = analyzer.createChild('parse');
2568 2578
2569 /** 2579 /**
2570 * The [PerformanceTag] for time spent in resolving. 2580 * The [PerformanceTag] for time spent in resolving.
2571 */ 2581 */
2572 static PerformanceTag resolve = new PerformanceTag('resolve'); 2582 static PerformanceTag resolve = new PerformanceTag('resolve');
2573 2583
2574 /** 2584 /**
2575 * The [PerformanceTag] for time spent in error verifier. 2585 * The [PerformanceTag] for time spent in error verifier.
2576 */ 2586 */
2577 static PerformanceTag errors = new PerformanceTag('errors'); 2587 static PerformanceTag errors = analysis.createChild('errors');
2578 2588
2579 /** 2589 /**
2580 * The [PerformanceTag] for time spent in hints generator. 2590 * The [PerformanceTag] for time spent in hints generator.
2581 */ 2591 */
2582 static PerformanceTag hints = new PerformanceTag('hints'); 2592 static PerformanceTag hints = analysis.createChild('hints');
2583 2593
2584 /** 2594 /**
2585 * The [PerformanceTag] for time spent in linting. 2595 * The [PerformanceTag] for time spent in linting.
2586 */ 2596 */
2587 static PerformanceTag lint = new PerformanceTag('lint'); 2597 static PerformanceTag lints = analysis.createChild('lints');
2588 2598
2589 /** 2599 /**
2590 * The [PerformanceTag] for time spent computing cycles. 2600 * The [PerformanceTag] for time spent computing cycles.
2591 */ 2601 */
2592 static PerformanceTag cycles = new PerformanceTag('cycles'); 2602 static PerformanceTag cycles = new PerformanceTag('cycles');
2593 2603
2594 /** 2604 /**
2595 * The [PerformanceTag] for time spent in other phases of analysis.
2596 */
2597 static PerformanceTag performAnalysis = new PerformanceTag('performAnalysis');
2598
2599 /**
2600 * The [PerformanceTag] for time spent in the analysis task visitor after
2601 * tasks are complete.
2602 */
2603 static PerformanceTag analysisTaskVisitor =
2604 new PerformanceTag('analysisTaskVisitor');
2605
2606 /**
2607 * The [PerformanceTag] for time spent in the getter
2608 * AnalysisContextImpl.nextAnalysisTask.
2609 */
2610 static var nextTask = new PerformanceTag('nextAnalysisTask');
2611
2612 /**
2613 * The [PerformanceTag] for time spent during otherwise not accounted parts
2614 * incremental of analysis.
2615 */
2616 static PerformanceTag incrementalAnalysis =
2617 new PerformanceTag('incrementalAnalysis');
2618
2619 /**
2620 * The [PerformanceTag] for time spent in summaries support. 2605 * The [PerformanceTag] for time spent in summaries support.
2621 */ 2606 */
2622 static PerformanceTag summary = new PerformanceTag('summary'); 2607 static PerformanceTag summary = analyzer.createChild('summary');
2623 2608
2624 /** 2609 /**
2625 * Statistics about cache consistency validation. 2610 * Statistics about cache consistency validation.
2626 */ 2611 */
2627 static final CacheConsistencyValidationStatistics 2612 static final CacheConsistencyValidationStatistics
2628 cacheConsistencyValidationStatistics = 2613 cacheConsistencyValidationStatistics =
2629 new CacheConsistencyValidationStatistics(); 2614 new CacheConsistencyValidationStatistics();
2630 } 2615 }
2631 2616
2632 /** 2617 /**
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2878 */ 2863 */
2879 bool get wereSourcesAdded => _changeSet.addedSources.length > 0; 2864 bool get wereSourcesAdded => _changeSet.addedSources.length > 0;
2880 2865
2881 /** 2866 /**
2882 * Return `true` if any sources were removed or deleted. 2867 * Return `true` if any sources were removed or deleted.
2883 */ 2868 */
2884 bool get wereSourcesRemoved => 2869 bool get wereSourcesRemoved =>
2885 _changeSet.removedSources.length > 0 || 2870 _changeSet.removedSources.length > 0 ||
2886 _changeSet.removedContainers.length > 0; 2871 _changeSet.removedContainers.length > 0;
2887 } 2872 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698