| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dump_info; | 5 library dump_info; |
| 6 | 6 |
| 7 import 'dart:convert' | 7 import 'dart:convert' |
| 8 show HtmlEscape, JsonEncoder, StringConversionSink, ChunkedConversionSink; | 8 show HtmlEscape, JsonEncoder, StringConversionSink, ChunkedConversionSink; |
| 9 | 9 |
| 10 import 'package:dart2js_info/info.dart'; | 10 import 'package:dart2js_info/info.dart'; |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 compilationMoment: new DateTime.now(), | 554 compilationMoment: new DateTime.now(), |
| 555 compilationDuration: compiler.totalCompileTime.elapsed, | 555 compilationDuration: compiler.totalCompileTime.elapsed, |
| 556 toJsonDuration: stopwatch.elapsedMilliseconds, | 556 toJsonDuration: stopwatch.elapsedMilliseconds, |
| 557 dumpInfoDuration: this.timing, | 557 dumpInfoDuration: this.timing, |
| 558 noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod, | 558 noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod, |
| 559 minified: compiler.enableMinification); | 559 minified: compiler.enableMinification); |
| 560 | 560 |
| 561 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( | 561 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( |
| 562 new StringConversionSink.fromStringSink(buffer)); | 562 new StringConversionSink.fromStringSink(buffer)); |
| 563 sink.add(result.toJson()); | 563 sink.add(result.toJson()); |
| 564 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { | 564 reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { |
| 565 'text': "View the dumped .info.json file at " | 565 'text': "View the dumped .info.json file at " |
| 566 "https://dart-lang.github.io/dump-info-visualizer" | 566 "https://dart-lang.github.io/dump-info-visualizer" |
| 567 }); | 567 }); |
| 568 } | 568 } |
| 569 } | 569 } |
| OLD | NEW |