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

Unified Diff: lib/src/options.dart

Issue 1419973003: generate an html report of the compilation results (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: address review comments Created 5 years, 2 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 | « lib/src/compiler.dart ('k') | lib/src/report/html_gen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/options.dart
diff --git a/lib/src/options.dart b/lib/src/options.dart
index 03d47fc7511c4bba3b02ff407d6d687bdbba4b1b..01bef1d3f7b4572b044312608b47589f5163bc69 100644
--- a/lib/src/options.dart
+++ b/lib/src/options.dart
@@ -102,6 +102,8 @@ class CompilerOptions {
/// Whether to dump summary information on the console.
final bool dumpInfo;
+ final bool htmlReport;
+
/// If not null, path to a file that will store a json representation of the
/// summary information (only used if [dumpInfo] is true).
final String dumpInfoFile;
@@ -151,6 +153,7 @@ class CompilerOptions {
this.runnerOptions: const RunnerOptions(),
this.checkSdk: false,
this.dumpInfo: false,
+ this.htmlReport: false,
this.dumpInfoFile,
this.useColors: true,
this.help: false,
@@ -200,6 +203,8 @@ CompilerOptions parseOptions(List<String> argv, {bool forceOutDir: false}) {
var dumpInfo = args['dump-info'];
if (dumpInfo == null) dumpInfo = serverMode;
+ var htmlReport = args['html-report'];
+
var v8Binary = args['v8-binary'];
if (v8Binary == null) v8Binary = 'iojs';
@@ -237,6 +242,7 @@ CompilerOptions parseOptions(List<String> argv, {bool forceOutDir: false}) {
runnerOptions: new RunnerOptions(v8Binary: v8Binary),
checkSdk: args['sdk-check'],
dumpInfo: dumpInfo,
+ htmlReport: htmlReport,
dumpInfoFile: args['dump-info-file'],
useColors: useColors,
help: showUsage,
@@ -311,6 +317,8 @@ final ArgParser argParser = new ArgParser()
..addOption('log', abbr: 'l', help: 'Logging level (defaults to warning)')
..addFlag('dump-info',
abbr: 'i', help: 'Dump summary information', defaultsTo: null)
+ ..addFlag('html-report',
+ help: 'Output compilation results to html', defaultsTo: null)
..addOption('v8-binary',
help: 'V8-based binary to run JavaScript output with (iojs, node, d8)',
defaultsTo: 'iojs')
« no previous file with comments | « lib/src/compiler.dart ('k') | lib/src/report/html_gen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698