Trait evmodin::tracing::Tracer [−][src]
pub trait Tracer {
fn notify_execution_start(
&mut self,
revision: Revision,
message: Message,
code: Bytes
);
fn notify_instruction_start(
&mut self,
pc: usize,
opcode: OpCode,
state: &ExecutionState
);
fn notify_execution_end(&mut self, output: &Output);
}
Expand description
Passed into execution context to collect metrics.
Required methods
fn notify_execution_start(
&mut self,
revision: Revision,
message: Message,
code: Bytes
)
fn notify_execution_start(
&mut self,
revision: Revision,
message: Message,
code: Bytes
)
Called when execution starts.
fn notify_instruction_start(
&mut self,
pc: usize,
opcode: OpCode,
state: &ExecutionState
)
fn notify_instruction_start(
&mut self,
pc: usize,
opcode: OpCode,
state: &ExecutionState
)
Called on each instruction.
fn notify_execution_end(&mut self, output: &Output)
fn notify_execution_end(&mut self, output: &Output)
Called when execution ends.