Expand description

Support for jitdump files which can be used by perf for profiling jitted code. Spec definitions for the output format is as described here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/perf/Documentation/jitdump-specification.txt

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

Structs

The CodeLoadRecord is used for describing jitted functions

Describes source line information for a jitted function

Describes debug information for a jitted function. An array of debug entries are appended to this record during writting. Note, this record must preceed the code load record that describes the same jitted function.

Fixed-sized header for each jitdump file

Interface for driving the creation of jitdump files

Each record starts with this fixed size record header which describes the record that follows

Enums

Defines jitdump record types