Function inspect_instructions
pub fn inspect_instructions<CTX, IT>(
context: &mut CTX,
interpreter: &mut Interpreter<IT>,
inspector: impl Inspector<CTX, IT>,
instructions: &[for<'a> fn(&'a mut Interpreter<IT>, &'a mut CTX); 256],
) -> InterpreterActionExpand 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.