Index: pkg/analyzer_cli/lib/src/options.dart |
diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart |
index d700c4e483c3d178c8ad9dad2b3b1a63b0f3b82b..383256828da8e23ccfc9e84f08b5e85bcfdb24a5 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -80,6 +80,10 @@ class CommandLineOptions { |
/// The path to a `.packages` configuration file |
final String packageConfigPath; |
+ /// The path to a file to write a performance log. |
+ /// (Or null if not enabled.) |
+ final String perfLog; |
+ |
/// Batch mode (for unit testing) |
final bool shouldBatch; |
@@ -117,6 +121,7 @@ class CommandLineOptions { |
machineFormat = args['machine'] || args['format'] == 'machine', |
packageConfigPath = args['packages'], |
packageRootPath = args['package-root'], |
+ perfLog = args['perf-log'], |
shouldBatch = args['batch'], |
showPackageWarnings = |
args['show-package-warnings'] || args['package-warnings'], |
@@ -236,6 +241,8 @@ class CommandLineOptions { |
help: 'Show warnings from package: imports.', |
defaultsTo: false, |
negatable: false) |
+ ..addOption('perf-log', |
Brian Wilkerson
2015/12/16 15:08:43
I think I'd prefer to not have this be visible in
skybrian
2015/12/16 18:48:10
For GWT there are compiler flags that are explicit
Brian Wilkerson
2015/12/16 19:06:45
That would be fine. I just want it to be obvious t
|
+ help: 'Writes a performance log to the given file.') |
..addFlag('show-package-warnings', |
help: 'Show warnings from package: imports (deprecated).', |
defaultsTo: false, |