Skip to content

Tags: cfallin/wasmtime

Tags

dev

Toggle dev's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Adds perf jitdump support (bytecodealliance#360)

Patch adds support for the perf jitdump file specification.
With this patch it should be possible to see profile data for code
generated and maped at runtime. Specifically the patch adds support
for the JIT_CODE_LOAD and the JIT_DEBUG_INFO record as described in
the specification. Dumping jitfiles is enabled with the --jitdump
flag. When the -g flag is also used there is an attempt to dump file
and line number information where this option would be most useful
when the WASM file already includes DWARF debug information.

The generation of the jitdump files has been tested on only a few wasm
files. This patch is expected to be useful/serviceable where currently
there is no means for jit profiling, but future patches may benefit
line mapping and add support for additional jitdump record types.

Usage Example:
Record
  sudo perf record -k 1 -e instructions:u target/debug/wasmtime -g
  --jitdump test.wasm
Combine
  sudo perf inject -v -j -i perf.data -o perf.jit.data
Report
  sudo perf report -i perf.jit.data -F+period,srcline

v0.11.0

Toggle v0.11.0's commit message
Bump version to 0.11.0

v0.10.0

Toggle v0.10.0's commit message
Bump version to 0.10.0

v0.9.0

Toggle v0.9.0's commit message
Bump version to 0.9.0

v0.8.0

Toggle v0.8.0's commit message
Bump the version to 0.8.0.

v0.6.0

Toggle v0.6.0's commit message
Bump version to 0.6.0

v0.3.0

Toggle v0.3.0's commit message
Disable testing of wasmtime-py for now.

v0.2.0

Toggle v0.2.0's commit message
Bump version to 0.2.0