diff --git a/pkg/vm_snapshot_analysis/CHANGELOG.md b/pkg/vm_snapshot_analysis/CHANGELOG.md index 626d21aea60..b3b4caf83e0 100644 --- a/pkg/vm_snapshot_analysis/CHANGELOG.md +++ b/pkg/vm_snapshot_analysis/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.7.3-dev + +- Update the readme to document the current way to generate Dart AOT snapshots. +- Spelling corrections in dartdoc comments. + ## 0.7.2 - Upgrade to `package:lints` 2.0. diff --git a/pkg/vm_snapshot_analysis/README.md b/pkg/vm_snapshot_analysis/README.md index 2aec2e0cfff..9b8c7c6ba04 100644 --- a/pkg/vm_snapshot_analysis/README.md +++ b/pkg/vm_snapshot_analysis/README.md @@ -20,25 +20,25 @@ impossible to attribute of every single byte from the snapshot to a particular place in the program with a 100% accuracy. * `--print-instructions-sizes-to` attributes _executable code_ from the snapshot -to a particular Dart function (or internal stub) from which this code -originated (ignoring deduplication). Executable code usually constitutes around -half of the snapshot, those this varies depending on the application. + to a particular Dart function (or internal stub) from which this code + originated (ignoring deduplication). Executable code usually constitutes + around half of the snapshot, those this varies depending on the application. * `--write-v8-snapshot-profile-to` is a graph representation of the snapshot, -it attributes bytes written into a snapshot to a node in the heap graph. This -format covers both data and code sections of the snapshot. + it attributes bytes written into a snapshot to a node in the heap graph. This + format covers both data and code sections of the snapshot. * `--trace-precompiler-to` gives information about dependencies between -compiled functions, allowing to determine why certain function was pulled into -the snapshot. + compiled functions, allowing to determine why certain function was pulled into + the snapshot. ### Passing flags to the AOT compiler -Both in `dart2native` and Flutter you can use `--extra-gen-snapshot-options` to -pass flags to the AOT compiler: +In both Flutter and `dart compile exe` / `dart compile aot-snapshot` you can use +`--extra-gen-snapshot-options` to pass flags to the AOT compiler: ```console $ flutter build aot --release --extra-gen-snapshot-options=--write-v8-snapshot-profile-to=profile.json -$ dart2native --extra-gen-snapshot-options=--write-v8-snapshot-profile-to=profile.json -o binary input.dart +$ dart compile exe --extra-gen-snapshot-options=--write-v8-snapshot-profile-to=profile.json -o binary input.dart ``` Similarly with `--print-instructions-sizes-to`. diff --git a/pkg/vm_snapshot_analysis/pubspec.yaml b/pkg/vm_snapshot_analysis/pubspec.yaml index 9f20542d03c..c8c232c957d 100644 --- a/pkg/vm_snapshot_analysis/pubspec.yaml +++ b/pkg/vm_snapshot_analysis/pubspec.yaml @@ -1,5 +1,5 @@ name: vm_snapshot_analysis -version: 0.7.2 +version: 0.7.3-dev description: Utilities for analysing AOT snapshot size. repository: https://github.com/dart-lang/sdk/tree/main/pkg/vm_snapshot_analysis