Adds JIT profiling support for VTune (#819)

This patch adds initial support for ittapi which is an open
source profiling api for instrumentation and tracing and profiling
of jitted code. Result files can be read by VTune for analysis

Build:
    cargo build --features=vtune
Profile: // Using amplxe-cl from VTune
    amplxe-cl -v -collect hostpost target/debug/wasmtime --vtune test.wasm
This commit is contained in:
Johnnie Birch
2020-04-02 07:04:08 -07:00
committed by GitHub
parent 9e11e8d019
commit dff789c7c6
17 changed files with 463 additions and 154 deletions

View File

@@ -36,6 +36,7 @@ winapi = { version = "0.3.8", features = ["winnt", "impl-default"] }
[features]
lightbeam = ["wasmtime-environ/lightbeam"]
jitdump = ["wasmtime-profiling/jitdump"]
vtune = ["wasmtime-profiling/vtune"]
[badges]
maintenance = { status = "actively-developed" }