Skip to content

Commit

Permalink
Expose instruction count
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-finch-tezos authored and johnyob committed Oct 7, 2024
1 parent 9d7153c commit 5ba29ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/engine/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,12 @@ impl Context {
Ok(self.enter_realm(old_realm))
}

/// Get the remaining instruction count
#[cfg(feature = "fuzz")]
#[inline]
pub const fn instructions_remaining(&self) -> u64 {
self.instructions_remaining
}
/// Get the [`RootShape`].
#[inline]
#[must_use]
Expand Down

0 comments on commit 5ba29ab

Please sign in to comment.