pub trait Profiler {
// Required methods
fn profile_call(
&mut self,
memory: &Memory<'_>,
call_code: Cons,
return: bool,
) -> Result<(), Error>;
fn profile_return(&mut self, memory: &Memory<'_>) -> Result<(), Error>;
fn profile_event(&mut self, name: &str) -> Result<(), Error>;
}
Expand description
A profiler.