Skip to content

Commit 24fafa3

Browse files
ludizhanCommit Queue
authored and
Commit Queue
committed
Update references of dart2js to dart compile js in dart2js info
README [email protected] Change-Id: I8e8b1c35adadb77c7322b76c5a434f1cfe973451 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339344 Commit-Queue: Ludi Zhan <[email protected]> Reviewed-by: Jacob Richman <[email protected]>
1 parent a36e01d commit 24fafa3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pkg/dart2js_info/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ together your own tool.
5656

5757
[AllInfo][AllInfo] exposes a Dart representation of all of the collected
5858
information. There are deserialization libraries in this package to decode any
59-
info file produced by the `dart2js` `--dump-info` option. See
60-
`lib/binary_serialization.dart` and `lib/json_info_codec.dart` to find the
61-
binary and JSON decoders respectively. For convenience,
62-
`package:dart2js_info/src/io.dart` also exposes a helper method that can choose,
63-
depending on the extension of the info file, whether to deserialize it using the
64-
binary or JSON decoder. For example:
59+
info file produced by the `dart compile js` (before Dart 2.18, `dart2js`)
60+
`--dump-info` option. See `lib/binary_serialization.dart` and
61+
`lib/json_info_codec.dart` to find the binary and JSON decoders respectively.
62+
For convenience, `package:dart2js_info/src/io.dart` also exposes a helper
63+
method that can choose, depending on the extension of the info file, whether to
64+
deserialize it using the binary or JSON decoder. For example:
6565

6666
```dart
6767
import 'dart:convert';
@@ -102,7 +102,7 @@ The following tools are a available today:
102102
* [`deferred_check`][deferred_check]: a tool that verifies that code
103103
was split into deferred parts as expected. This tool takes a specification
104104
of the expected layout of code into deferred parts, and checks that the
105-
output from `dart2js` meets the specification.
105+
output from `dart compile js` meets the specification.
106106

107107
* [`deferred_size`][deferred_size]: a tool that gives a breakdown of
108108
the sizes of the deferred parts of the program. This can show how much of
@@ -501,7 +501,7 @@ steps are as follows:
501501
`--experiment-call-instrumentation`
502502

503503
```console
504-
$ dart2js --dump-info --experiment-call-instrumentation main.dart
504+
$ dart compile js --dump-info --experiment-call-instrumentation main.dart
505505
```
506506

507507
The flag only works dart2js version 2.2.0 or newer.
@@ -536,14 +536,14 @@ Runtime code analysis requires both an info file and a runtime data file.
536536
The info file is emitted by compiling a dart2js app with `--dump-info`:
537537

538538
```console
539-
$ dart2js --dump-info main.dart
539+
$ dart compile js --dump-info main.dart
540540
```
541541

542542
Enable the collection of runtime data by compiling a dart2js app with an
543543
experimental flag:
544544

545545
```console
546-
$ dart2js --experimental-track-allocations main.dart
546+
$ dart compile js --experimental-track-allocations main.dart
547547
```
548548

549549
After using your app (manually or via integration tests), dump the top-level

0 commit comments

Comments
 (0)