Commit graph

6 commits

Author SHA1 Message Date
Kenzie Schmoll 6607655382 [vm_snapshot_analysis] move command/* lib files out of bin
The files in `command/*` were moved as part of https://dart-review.googlesource.com/c/sdk/+/154360.

This CL responds to Slava's comment "FWIW having this files in bin violates pub layout guidelines and looks pretty different from all other packages we have: bin/ is a folder for scripts. Libraries should live in lib."

I verified in DevTools that with this change, we can still import files from package:vm_snapshot_analysis and run on the web (as long as we do not import files that depend on dart:io - lib/commands/utils.dart)

Change-Id: I8c4f2a55c9cf346260fa5b80116c21993ccfc249
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154481
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Kenzie Schmoll <kenzieschmoll@google.com>
2020-07-15 20:06:47 +00:00
Kenzie Schmoll 845d0bdc09 [vm_snapshot_analysis] Move utils.dart into bin/commands/
Change-Id: Ib5471b3effb223795f0cdcc6fcf7f2e7d487e1f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154345
Reviewed-by: Jacob Richman <jacobr@google.com>
Commit-Queue: Kenzie Schmoll <kenzieschmoll@google.com>
2020-07-15 00:34:03 +00:00
Kenzie Schmoll 4f55ba2639 [vm_snapshot_analysis] rearrange dart:io dep and move commands to bin
Change-Id: Ib22ae8d1ec3c4032c646915bad94361efef48a2c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154360
Commit-Queue: Kenzie Schmoll <kenzieschmoll@google.com>
Reviewed-by: Jacob Richman <jacobr@google.com>
2020-07-14 23:09:18 +00:00
Vyacheslav Egorov 69ec1a9965 [vm/aot] Add machine readable precompiler trace
This CL adds --trace-precompiler-to option which generates a machine readable
precompiler trace (list of all compiled functions and their dependencies).

It also expands package:vm_snapshot_analysis with tools for reading and
analysing this trace.

For example snapshot_analysis explain dynamic-calls command allows
to list all dynamic calls sorted by their impact on the size of the AOT
snapshot.

Issue https://github.com/dart-lang/sdk/issues/41249

Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-win-release-try,pkg-mac-release-try
Change-Id: Ie49143f4da375067991991e2ad20a41ec67bb1c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152851
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-03 09:29:10 +00:00
Vyacheslav Egorov e148167747 [vm/snapshot_analysis] Fix a minor bug in attribution of node sizes.
Previously we given the info node and its corresponding snapshot node we
would attribute the size of snapshot node to the parent of the info node,
which is incorrect.

This CL also includes few other minor changes (all described in
CHANGELOG.md):

-  `--help` output of the command,
the method for detecting executable name was not working correctly
under `pub global activate`: it printed snapshot name, instead of
`snapshot_analysis`;
- rename `README.dart` to `README.md` because `.dart` extension
confuses `pub` analysis.
- add documentation to `ProgramInfoNode.size`.
- add documentation on passing flags to AOT compiler


Cq-Include-Trybots: luci.dart.try:pkg-linux-release-try,pkg-win-release-try,pkg-mac-release-try
Change-Id: I8e8f2e9b7b9bfb3fe688caa16c0490eb8ec60e7c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152148
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2020-06-24 11:03:55 +00:00
Vyacheslav Egorov 117df0e98b [vm/tools] Move snapshot analysis tool to its own package.
This code will be published on Pub so that Dev Tools can consume it.

Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-win-release-try,pkg-mac-release-try
Change-Id: Iddfbd3f0976af218d29ac20b452fbb139983a484
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152008
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2020-06-23 13:14:41 +00:00