Trait wasmtime_jit::ProfilingAgent
source · pub trait ProfilingAgent: Send + Sync + 'static {
fn module_load(&self, module: &CompiledModule, dbg_image: Option<&[u8]>);
fn load_single_trampoline(
&self,
name: &str,
addr: *const u8,
size: usize,
pid: u32,
tid: u32
);
}
Expand description
Common interface for profiling tools.
Required Methods§
sourcefn module_load(&self, module: &CompiledModule, dbg_image: Option<&[u8]>)
fn module_load(&self, module: &CompiledModule, dbg_image: Option<&[u8]>)
Notify the profiler of a new module loaded into memory