Skip to content

Commit 354921f

Browse files
mkustermanncommit-bot@chromium.org
authored andcommitted
Update runtime/docs/aot_binary_size_analysis.md with paragraph about size comparison tool
Closes #38950 #38950 GitOrigin-RevId: 31625fa Change-Id: I00cf15f5ddb019441acc8ddf84556d881832500e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122020 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
1 parent 5706d13 commit 354921f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

runtime/docs/aot_binary_size_analysis.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ Generated file:///.../sdk/hello_sizes/index.html
2828
% chrome hello_sizes/index.html
2929
```
3030

31+
32+
## Comparing the sizes of two AOT builds
33+
34+
To visualize the differences between two AOT builds one can use our binary size
35+
comparison tool:
36+
37+
```
38+
% dart pkg/vm/bin/compare_sizes.dart app-sizes--before.json app-sizes--after.json
39+
40+
+---------+--------+--------------+
41+
| Library | Method | Diff (Bytes) |
42+
+---------+--------+--------------+
43+
...
44+
```

0 commit comments

Comments
 (0)