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

Unified Diff: pkg/analyzer/lib/options.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
Index: pkg/analyzer/lib/options.dart
diff --git a/pkg/analyzer/lib/options.dart b/pkg/analyzer/lib/options.dart
index 3aa4dd37a34a069aba2b5b21863bb813f84daf2c..0922223ee8ea829effa7fcf43118f1a068dacab2 100644
--- a/pkg/analyzer/lib/options.dart
+++ b/pkg/analyzer/lib/options.dart
@@ -39,6 +39,9 @@ class CommandLineOptions {
/** Whether to show SDK warnings */
final bool showSdkWarnings;
+ /** Whether to show both cold and hot performance statistics */
+ final bool warmPerf;
+
/** Whether to treat warnings as fatal */
final bool warningsAreFatal;
@@ -66,6 +69,7 @@ class CommandLineOptions {
perf = args['perf'],
showPackageWarnings = args['show-package-warnings'] || args['package-warnings'],
showSdkWarnings = args['show-sdk-warnings'] || args['warnings'],
+ warmPerf = args['warm-perf'],
warningsAreFatal = args['fatal-warnings'],
dartSdkPath = args['dart-sdk'],
packageRootPath = args['package-root'],
@@ -127,6 +131,9 @@ class CommandLineOptions {
..addFlag('perf',
help: 'Show performance statistics',
defaultsTo: false, negatable: false)
+ ..addFlag('warm-perf',
+ help: 'Show both cold and warm performance statistics',
+ defaultsTo: false, negatable: false, hide: true)
..addFlag('warnings', help: 'Show warnings from SDK imports',
defaultsTo: false, negatable: false)
..addFlag('show-sdk-warnings', help: 'Show warnings from SDK imports (deprecated)',

Powered by Google App Engine
This is Rietveld 408576698