Skip to content

Commit

Permalink
Update references of dart2js to dart compile js in dart2js info
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ludizhan authored and Commit Queue committed Dec 2, 2023
1 parent a36e01d commit 24fafa3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/dart2js_info/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ together your own tool.

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

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

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

```console
$ dart2js --dump-info --experiment-call-instrumentation main.dart
$ dart compile js --dump-info --experiment-call-instrumentation main.dart
```

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

```console
$ dart2js --dump-info main.dart
$ dart compile js --dump-info main.dart
```

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

```console
$ dart2js --experimental-track-allocations main.dart
$ dart compile js --experimental-track-allocations main.dart
```

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

0 comments on commit 24fafa3

Please sign in to comment.