Skip to content

Commit

Permalink
chore: enable memory access tracking without profile (TEST ONLY)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh-axiom-xyz committed Feb 16, 2025
1 parent f0480e2 commit d1f09e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/vm/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ where

#[cfg(feature = "function-span")]
self.metrics.update_current_fn(pc);
} else {
let executor = self.chip_complex.inventory.get_executor(opcode).unwrap();
let opcode_name = executor.get_opcode_name(opcode.as_usize());
self.update_memory_accesses(old_timestamp, opcode_name);
}
}

Expand Down

0 comments on commit d1f09e7

Please sign in to comment.