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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index f2f984f3b32b916b0d5a42dadf8c4b41bd600584..385a8818a926bcf1c2c90967595e527b152c6fe9 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -2552,19 +2552,29 @@ class ObsoleteSourceAnalysisException extends AnalysisException {
*/
class PerformanceStatistics {
/**
+ * The [PerformanceTag] for `package:analyzer`.
+ */
+ static PerformanceTag analyzer = new PerformanceTag('analyzer');
+
+ /**
* The [PerformanceTag] for time spent in reading files.
*/
- static PerformanceTag io = new PerformanceTag('io');
+ static PerformanceTag io = analyzer.createChild('io');
+
+ /**
+ * The [PerformanceTag] for general phases of analysis.
+ */
+ static PerformanceTag analysis = analyzer.createChild('analysis');
/**
* The [PerformanceTag] for time spent in scanning.
*/
- static PerformanceTag scan = new PerformanceTag('scan');
+ static PerformanceTag scan = analyzer.createChild('scan');
/**
* The [PerformanceTag] for time spent in parsing.
*/
- static PerformanceTag parse = new PerformanceTag('parse');
+ static PerformanceTag parse = analyzer.createChild('parse');
/**
* The [PerformanceTag] for time spent in resolving.
@@ -2574,17 +2584,17 @@ class PerformanceStatistics {
/**
* The [PerformanceTag] for time spent in error verifier.
*/
- static PerformanceTag errors = new PerformanceTag('errors');
+ static PerformanceTag errors = analysis.createChild('errors');
/**
* The [PerformanceTag] for time spent in hints generator.
*/
- static PerformanceTag hints = new PerformanceTag('hints');
+ static PerformanceTag hints = analysis.createChild('hints');
/**
* The [PerformanceTag] for time spent in linting.
*/
- static PerformanceTag lint = new PerformanceTag('lint');
+ static PerformanceTag lints = analysis.createChild('lints');
/**
* The [PerformanceTag] for time spent computing cycles.
@@ -2592,34 +2602,9 @@ class PerformanceStatistics {
static PerformanceTag cycles = new PerformanceTag('cycles');
/**
- * The [PerformanceTag] for time spent in other phases of analysis.
- */
- static PerformanceTag performAnalysis = new PerformanceTag('performAnalysis');
-
- /**
- * The [PerformanceTag] for time spent in the analysis task visitor after
- * tasks are complete.
- */
- static PerformanceTag analysisTaskVisitor =
- new PerformanceTag('analysisTaskVisitor');
-
- /**
- * The [PerformanceTag] for time spent in the getter
- * AnalysisContextImpl.nextAnalysisTask.
- */
- static var nextTask = new PerformanceTag('nextAnalysisTask');
-
- /**
- * The [PerformanceTag] for time spent during otherwise not accounted parts
- * incremental of analysis.
- */
- static PerformanceTag incrementalAnalysis =
- new PerformanceTag('incrementalAnalysis');
-
- /**
* The [PerformanceTag] for time spent in summaries support.
*/
- static PerformanceTag summary = new PerformanceTag('summary');
+ static PerformanceTag summary = analyzer.createChild('summary');
/**
* Statistics about cache consistency validation.

Powered by Google App Engine
This is Rietveld 408576698