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

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: add a test 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..2bc48b97e5a2faba97f95eb8b605dd382dd0f496 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 perfReport;
+
/// 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'],
+ perfReport = args['x-perf-report'],
shouldBatch = args['batch'],
showPackageWarnings =
args['show-package-warnings'] || args['package-warnings'],
@@ -248,6 +253,8 @@ class CommandLineOptions {
help: 'Show warnings from SDK imports (deprecated).',
defaultsTo: false,
negatable: false)
+ ..addOption('x-perf-report',
+ help: 'Writes a performance report to the given file (experimental).')
..addFlag('help',
abbr: 'h',
help: 'Display this help message.',

Powered by Google App Engine
This is Rietveld 408576698