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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 227533005: Add new performance option (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bug fixes Created 6 years, 8 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
« pkg/analyzer/bin/analyzer.dart ('K') | « pkg/analyzer/lib/src/analyzer_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3e955cd4d8ffcd613a4062ba2432426adddf03f1..b16d920bcadaad410c9d757e5d045498284deb4b 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -9869,6 +9869,19 @@ class PerformanceStatistics {
* The [TimeCounter] for time spent in hints generator.
*/
static TimeCounter hints = new TimeCounter();
+
+ /**
+ * Reset all of the time counters to zero.
+ */
+ static void reset() {
+ io = new TimeCounter();
+ scan = new TimeCounter();
+ parse = new TimeCounter();
+ resolve = new TimeCounter();
+ angular = new TimeCounter();
+ errors = new TimeCounter();
+ hints = new TimeCounter();
+ }
}
/**
« pkg/analyzer/bin/analyzer.dart ('K') | « pkg/analyzer/lib/src/analyzer_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698