Load generated trampolines into jitdump when profiling (#3344)
* Load generated trampolines into jitdump when profiling This commit updates the jitdump profiler to generate JIT profiling records for generated trampolines in a wasm module in addition to the functions already in a module. It's also updated to learn about trampolines generated via `Func::new` and friends. These trampolines were all not previously registered meaning that stack traces with these pc values would be confusing to see in the profile output. While the names aren't the best it should at least be more clear than before if a function is hot! * Fix more builds
This commit is contained in:
@@ -20,4 +20,5 @@ impl JitDumpAgent {
|
||||
|
||||
impl ProfilingAgent for JitDumpAgent {
|
||||
fn module_load(&self, _module: &CompiledModule, _dbg_image: Option<&[u8]>) {}
|
||||
fn trampoline_load(&self, _file: &object::File<'_>) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user