Trait vapcore_trace::VMTracer [−][src]
Used by executive to build VM traces.
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn trace_next_instruction(
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
[src]
&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.
fn trace_prepare_execute(
&mut self,
_pc: usize,
_instruction: u8,
_gas_cost: U256,
_mem_written: Option<(usize, usize)>,
_store_written: Option<(U256, U256)>
)
[src]
&mut self,
_pc: usize,
_instruction: u8,
_gas_cost: U256,
_mem_written: Option<(usize, usize)>,
_store_written: Option<(U256, U256)>
)
Trace the preparation to execute a single valid instruction.
fn trace_failed(&mut self)
[src]
Trace the execution failure of a single instruction.
fn trace_executed(&mut self, _gas_used: U256, _stack_push: &[U256], _mem: &[u8])
[src]
Trace the finalised execution of a single valid instruction.
fn prepare_subtrace(&mut self, _code: &[u8])
[src]
Spawn subtracer which will be used to trace deeper levels of execution.
fn done_subtrace(&mut self)
[src]
Finalize subtracer.
Implementors
impl VMTracer for ExecutiveVMTracer
[src]
type Output = VMTrace
fn trace_next_instruction(
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
[src]
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
fn trace_prepare_execute(
&mut self,
pc: usize,
instruction: u8,
gas_cost: U256,
mem_written: Option<(usize, usize)>,
store_written: Option<(U256, U256)>
)
[src]
&mut self,
pc: usize,
instruction: u8,
gas_cost: U256,
mem_written: Option<(usize, usize)>,
store_written: Option<(U256, U256)>
)