Profiler

Trait Profiler 

Source
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.

Required Methods§

Source

fn profile_call( &mut self, memory: &Memory<'_>, call_code: Cons, return: bool, ) -> Result<(), Error>

Profiles a call.

Source

fn profile_return(&mut self, memory: &Memory<'_>) -> Result<(), Error>

Profiles a return.

Source

fn profile_event(&mut self, name: &str) -> Result<(), Error>

Profiles a call.

Implementors§