Skip to content

Commit

Permalink
Document InstructionCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan authored Mar 7, 2024
1 parent acc99c9 commit f4f7675
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tests/vm-benchmark/harness/src/instruction_counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub struct InstructionCounter {
output: Rc<RefCell<usize>>,
}

/// A tracer that counts the number of instructions executed by the VM.
impl InstructionCounter {
pub fn new(output: Rc<RefCell<usize>>) -> Self {
Self { count: 0, output }
Expand Down

0 comments on commit f4f7675

Please sign in to comment.