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

Unified Diff: pkg/analyzer_experimental/lib/options.dart

Issue 24637002: Support for --perf in analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « pkg/analyzer_experimental/bin/analyzer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/lib/options.dart
diff --git a/pkg/analyzer_experimental/lib/options.dart b/pkg/analyzer_experimental/lib/options.dart
index 37c6c8dab11ebf118b1ab686732d1141a637d784..efa3b5f5266554e5fd54b5a440f78073b9867388 100644
--- a/pkg/analyzer_experimental/lib/options.dart
+++ b/pkg/analyzer_experimental/lib/options.dart
@@ -29,6 +29,9 @@ class CommandLineOptions {
/** Whether to ignore unrecognized flags */
final bool ignoreUnrecognizedFlags;
+ /** Whether to show performance statistics */
+ final bool perf;
+
/** Whether to show package: warnings */
final bool showPackageWarnings;
@@ -55,6 +58,7 @@ class CommandLineOptions {
machineFormat = args['machine'],
displayVersion = args['version'],
ignoreUnrecognizedFlags = args['ignore-unrecognized-flags'],
+ perf = args['perf'],
showPackageWarnings = args['show-package-warnings'],
showSdkWarnings = args['show-sdk-warnings'],
warningsAreFatal = args['fatal-warnings'],
@@ -106,6 +110,9 @@ class CommandLineOptions {
..addFlag('show-package-warnings',
help: 'Show warnings from package: imports',
defaultsTo: false, negatable: false)
+ ..addFlag('perf',
+ help: 'Show performance statistics',
+ defaultsTo: false, negatable: false)
..addFlag('show-sdk-warnings', help: 'Show warnings from SDK imports',
defaultsTo: false, negatable: false)
..addFlag('help', abbr: 'h', help: 'Display this help message',
« no previous file with comments | « pkg/analyzer_experimental/bin/analyzer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698