use revm::{interpreter::Interpreter, Inspector};
#[derive(Clone, Copy, Debug, Default)]
pub struct OpcodeCountInspector {
count: usize,
}
impl OpcodeCountInspector {
#[inline]
pub const fn count(&self) -> usize {
self.count
}
}
impl<CTX> Inspector<CTX> for OpcodeCountInspector {
fn step(&mut self, _interp: &mut Interpreter, _context: &mut CTX) {
self.count += 1;
}
}