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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/PerformanceStatistics.java

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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/PerformanceStatistics.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/PerformanceStatistics.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/PerformanceStatistics.java
index 82d99f7d855f93a6276119901c7c8e34eb869003..eba3314f01359c89313ed4d0a9af7b3ee87d036a 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/PerformanceStatistics.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/PerformanceStatistics.java
@@ -24,40 +24,54 @@ public class PerformanceStatistics {
/**
* The {@link TimeCounter} for time spent in reading files.
*/
- public static final TimeCounter io = new TimeCounter();
+ public static TimeCounter io = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in scanning.
*/
- public static final TimeCounter scan = new TimeCounter();
+ public static TimeCounter scan = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in parsing.
*/
- public static final TimeCounter parse = new TimeCounter();
+ public static TimeCounter parse = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in resolving.
*/
- public static final TimeCounter resolve = new TimeCounter();
+ public static TimeCounter resolve = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in Angular analysis.
*/
- public static final TimeCounter angular = new TimeCounter();
+ public static TimeCounter angular = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in Polymer analysis.
*/
- public static final TimeCounter polymer = new TimeCounter();
+ public static TimeCounter polymer = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in error verifier.
*/
- public static final TimeCounter errors = new TimeCounter();
+ public static TimeCounter errors = new TimeCounter();
/**
* The {@link TimeCounter} for time spent in hints generator.
*/
- public static final TimeCounter hints = new TimeCounter();
+ public static TimeCounter hints = new TimeCounter();
+
+ /**
+ * Reset all of the time counters to zero.
+ */
+ public static void reset() {
+ io = new TimeCounter();
+ scan = new TimeCounter();
+ parse = new TimeCounter();
+ resolve = new TimeCounter();
+ angular = new TimeCounter();
+ polymer = new TimeCounter();
+ errors = new TimeCounter();
+ hints = new TimeCounter();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698