stak_vm/profiler.rs
1use crate::{Cons, Memory};
2
3/// A profiler.
4pub trait Profiler {
5 /// Profiles a call.
6 fn profile_call(&mut self, memory: &Memory, call_code: Cons, r#return: bool);
7
8 /// Profiles a return.
9 fn profile_return(&mut self, memory: &Memory);
10
11 /// Profiles a call.
12 fn profile_event(&mut self, name: &str);
13}