Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds perf jitdump support #360

Merged
merged 1 commit into from
Feb 21, 2020

Commits on Feb 20, 2020

  1. Adds perf jitdump support

    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
    jlb6740 committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    b070011 View commit details
    Browse the repository at this point in the history