Trait wasmtime_profiling::ProfilingAgent
source · [−]pub trait ProfilingAgent: Send + Sync + 'static {
fn module_load(
&self,
module: &Module,
functions: &PrimaryMap<DefinedFuncIndex, *mut [VMFunctionBody]>,
dbg_image: Option<&[u8]>
);
}
Expand description
Common interface for profiling tools.
Required methods
fn module_load(
&self,
module: &Module,
functions: &PrimaryMap<DefinedFuncIndex, *mut [VMFunctionBody]>,
dbg_image: Option<&[u8]>
)
fn module_load(
&self,
module: &Module,
functions: &PrimaryMap<DefinedFuncIndex, *mut [VMFunctionBody]>,
dbg_image: Option<&[u8]>
)
Notify the profiler of a new module loaded into memory