Struct ethcore::trace::ExecutiveVMTracer
[−]
[src]
pub struct ExecutiveVMTracer { /* fields omitted */ }
Simple VM tracer. Traces all operations.
Methods
impl ExecutiveVMTracer
[src]
impl ExecutiveVMTracer
Trait Implementations
impl VMTracer for ExecutiveVMTracer
[src]
impl VMTracer for ExecutiveVMTracer
type Output = VMTrace
Data returned when draining the VMTracer.
fn trace_next_instruction(
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
[src]
fn trace_next_instruction(
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
Trace the progression of interpreter to next instruction. If tracer returns false
it won't be called again. @returns true if trace_prepare_execute
and trace_executed
should be called. Read more
fn trace_prepare_execute(&mut self, pc: usize, instruction: u8, gas_cost: U256)
[src]
fn trace_prepare_execute(&mut self, pc: usize, instruction: u8, gas_cost: U256)
Trace the preparation to execute a single valid instruction.
fn trace_executed(
&mut self,
gas_used: U256,
stack_push: &[U256],
mem_diff: Option<(usize, &[u8])>,
store_diff: Option<(U256, U256)>
)
[src]
fn trace_executed(
&mut self,
gas_used: U256,
stack_push: &[U256],
mem_diff: Option<(usize, &[u8])>,
store_diff: Option<(U256, U256)>
)
Trace the finalised execution of a single valid instruction.
fn prepare_subtrace(&self, code: &[u8]) -> Self
[src]
fn prepare_subtrace(&self, code: &[u8]) -> Self
Spawn subtracer which will be used to trace deeper levels of execution.
fn done_subtrace(&mut self, sub: Self)
[src]
fn done_subtrace(&mut self, sub: Self)
Finalize subtracer.
fn drain(self) -> Option<VMTrace>
[src]
fn drain(self) -> Option<VMTrace>
Consumes self and returns the VM trace.
Auto Trait Implementations
impl Send for ExecutiveVMTracer
impl Send for ExecutiveVMTracer
impl Sync for ExecutiveVMTracer
impl Sync for ExecutiveVMTracer