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

Unified Diff: bin/live_code_size_analysis.dart

Issue 2201903004: add tool to get breakdown of deferred libraries by size (Closed) Base URL: git@github.com:dart-lang/dart2js_info.git@master
Patch Set: Created 4 years, 4 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
Index: bin/live_code_size_analysis.dart
diff --git a/bin/live_code_size_analysis.dart b/bin/live_code_size_analysis.dart
index 333f5c46a0f7f33a12239cec1e991371f2da1bd3..5520ff1233bfbd4fedc38e4565ea5a6f15518cec 100644
--- a/bin/live_code_size_analysis.dart
+++ b/bin/live_code_size_analysis.dart
@@ -39,17 +39,17 @@ import 'dart:io';
import 'package:dart2js_info/info.dart';
import 'package:dart2js_info/src/util.dart';
+
import 'function_size_analysis.dart';
-main(args) {
+main(args) async {
if (args.length < 2) {
print('usage: dart tool/live_code_size_analysis.dart path-to-info.json '
'path-to-coverage.json [-v]');
exit(1);
}
- var json = JSON.decode(new File(args[0]).readAsStringSync());
- var info = new AllInfoJsonCodec().decode(json);
+ var info = await infoFromFile(args.first);
var coverage = JSON.decode(new File(args[1]).readAsStringSync());
var verbose = args.length > 2 && args[2] == '-v';

Powered by Google App Engine
This is Rietveld 408576698