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

Unified Diff: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.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.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
diff --git a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
index bee2b7cfd0ddc603e186eb848a44c59ec0145433..060a12eb8991279575b432b7bc259c4dee413e27 100644
--- a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
+++ b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
@@ -189,6 +189,10 @@ public class AnalyzerOptions {
@Option(name = "--diagnostic-colors")
private boolean diagnosticColors = false; // ignored for now
+ @Option(name = "--warm-perf")
+ // usage = "Print both cold and warm performance statistics") // don't show in help
+ private boolean warmPerf = false;
+
@Argument
private final String sourceFile = null;
@@ -278,6 +282,13 @@ public class AnalyzerOptions {
}
/**
+ * @return whether both cold and warm performance statistics should be printed
+ */
+ public boolean getWarmPerf() {
+ return warmPerf;
+ }
+
+ /**
* Return whether warnings are reported as fatal errors. This is only useful for batch mode.
*
* @return whether warnings are reported as fatal errors

Powered by Google App Engine
This is Rietveld 408576698