From f4f7675e3db1766e301b4da8bb696d6fca7b8a08 Mon Sep 17 00:00:00 2001 From: Joonatan Saarhelo <joon.saar@gmail.com> Date: Thu, 7 Mar 2024 19:00:19 +0000 Subject: [PATCH] Document InstructionCounter --- core/tests/vm-benchmark/harness/src/instruction_counter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tests/vm-benchmark/harness/src/instruction_counter.rs b/core/tests/vm-benchmark/harness/src/instruction_counter.rs index bff42defc50d..b52678ca20da 100644 --- a/core/tests/vm-benchmark/harness/src/instruction_counter.rs +++ b/core/tests/vm-benchmark/harness/src/instruction_counter.rs @@ -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 }