10429f4e89
Adds some more documentation about * using `wami` to dump section stats / wasm code * building & testing dart2wasm ... Change-Id: I439daf04d8f4599e817577c3b4cb58053a836b47 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365806 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Ömer Ağacan <omersa@google.com>
491 B
491 B
Build V8
Profile a Dart2Wasm app
<sdk> % <v8-repo>/tools/profiling/linux-perf-d8.py <v8-repo>/out/x64.release/d8 pkg/dart2wasm/bin/run_wasm.js -- $PWD/<file>.mjs $PWD/<file>.wasm
<sdk> % sdk/bin/dart2wasm --omit-type-checks .../benchmark.dart output.wasm
<sdk> % <v8-repo>/tools/profiling/linux-perf-d8.py <v8-repo>/out/x64.release/d8 pkg/dart2wasm/bin/run_wasm.js -- $PWD/output.mjs $PWD/output.wasm
See also https://v8.dev/docs/linux-perf