pub fn inspect_instructions<CTX, IT>(
context: &mut CTX,
interpreter: &mut Interpreter<IT>,
inspector: impl Inspector<CTX, IT>,
instructions: &InstructionTable<IT, CTX>,
) -> InterpreterAction
Expand description
Run Interpreter loop with inspection support.
This function is used to inspect the Interpreter loop.
It will call Inspector::step
and Inspector::step_end
after each instruction.
And Inspector::log
,Inspector::selfdestruct
for each log and selfdestruct instruction.