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

Unified Diff: bin/deferred_library_check.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/debug_info.dart ('k') | bin/deferred_library_size.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/deferred_library_check.dart
diff --git a/bin/deferred_library_check.dart b/bin/deferred_library_check.dart
index d9cd15115b6be8f7ed538a7a884efd98e1fff0d8..19cceefdc3005a55f4d8863cf15e0e394597caa3 100644
--- a/bin/deferred_library_check.dart
+++ b/bin/deferred_library_check.dart
@@ -36,11 +36,10 @@
library dart2js_info.bin.deferred_library_check;
import 'dart:async';
-import 'dart:convert';
import 'dart:io';
-import 'package:dart2js_info/info.dart';
import 'package:dart2js_info/deferred_library_check.dart';
+import 'package:dart2js_info/src/util.dart';
import 'package:yaml/yaml.dart';
Future main(List<String> args) async {
@@ -56,11 +55,6 @@ Future main(List<String> args) async {
if (failures.isNotEmpty) exitCode = 1;
}
-Future<AllInfo> infoFromFile(String fileName) async {
- var file = await new File(fileName).readAsString();
- return new AllInfoJsonCodec().decode(JSON.decode(file));
-}
-
Future manifestFromFile(String fileName) async {
var file = await new File(fileName).readAsString();
return loadYaml(file);
« no previous file with comments | « bin/debug_info.dart ('k') | bin/deferred_library_size.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698