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

Unified Diff: pkg/compiler/lib/src/source_file_provider.dart

Issue 2865643004: dart2js: Always print input and output sizes and compile time (Closed)
Patch Set: Created 3 years, 7 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/compiler/lib/src/dart2js.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/source_file_provider.dart
diff --git a/pkg/compiler/lib/src/source_file_provider.dart b/pkg/compiler/lib/src/source_file_provider.dart
index cf9a1a55f3e44d145ee657e4fef9504ce7b8e535..37e3b9d55b3af1bd799c518d7ea27a73b2cf7437 100644
--- a/pkg/compiler/lib/src/source_file_provider.dart
+++ b/pkg/compiler/lib/src/source_file_provider.dart
@@ -238,7 +238,10 @@ class RandomAccessFileOutputProvider implements CompilerOutput {
final MessageCallback onFailure;
int totalCharactersWritten = 0;
- List<String> allOutputFiles = new List<String>();
+ int totalCharactersWrittenPrimary = 0;
+ int totalCharactersWrittenJavaScript = 0;
+
+ List<String> allOutputFiles = <String>[];
RandomAccessFileOutputProvider(this.out, this.sourceMapOut,
{this.onInfo, this.onFailure, this.resolutionOutput});
@@ -335,8 +338,12 @@ class RandomAccessFileOutputProvider implements CompilerOutput {
onDone() {
output.closeSync();
+ totalCharactersWritten += charactersWritten;
if (isPrimaryOutput) {
- totalCharactersWritten += charactersWritten;
+ totalCharactersWrittenPrimary += charactersWritten;
+ }
+ if (type == OutputType.js || type == OutputType.jsPart) {
+ totalCharactersWrittenJavaScript += charactersWritten;
}
}
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698