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

Unified Diff: pkg/analyzer_cli/lib/src/options.dart

Issue 1524413002: Add --x-perf-report flag to the dartanalyzer command (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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_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,
« pkg/analyzer_cli/lib/src/driver.dart ('K') | « pkg/analyzer_cli/lib/src/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698