Trait wasmtime_jit::ProfilingAgent

source ·
pub trait ProfilingAgent: Send + Sync + 'static {
    // Required methods
    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§

source

fn module_load(&self, module: &CompiledModule, dbg_image: Option<&[u8]>)

Notify the profiler of a new module loaded into memory

source

fn load_single_trampoline( &self, name: &str, addr: *const u8, size: usize, pid: u32, tid: u32, )

Notify the profiler about a single dynamically-generated trampoline (for host function) that is being loaded now.`

Implementors§