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

Unified Diff: bin/function_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: add TODO 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
« no previous file with comments | « bin/deferred_library_size.dart ('k') | bin/library_size_split.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/function_size_analysis.dart
diff --git a/bin/function_size_analysis.dart b/bin/function_size_analysis.dart
index 3606310c1102e09708e72ee8dc75c07ff1e89053..e97166da114268a6af6f0256910848fc15bd5700 100644
--- a/bin/function_size_analysis.dart
+++ b/bin/function_size_analysis.dart
@@ -6,17 +6,14 @@
/// code.
library compiler.tool.live_code_size_analysis;
-import 'dart:convert';
-import 'dart:io';
import 'dart:math' as math;
import 'package:dart2js_info/info.dart';
import 'package:dart2js_info/src/graph.dart';
import 'package:dart2js_info/src/util.dart';
-main(args) {
- var json = JSON.decode(new File(args[0]).readAsStringSync());
- var info = new AllInfoJsonCodec().decode(json);
+main(args) async {
+ var info = await infoFromFile(args.first);
showCodeDistribution(info);
}
« no previous file with comments | « bin/deferred_library_size.dart ('k') | bin/library_size_split.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698