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