stak_vm

Trait Profiler

source
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§

source

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

Profiles a call.

source

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

Profiles a return.

source

fn profile_event(&mut self, name: &str)

Profiles a call.

Implementors§