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 8, 2024
1 parent 9d7153c commit e5f312a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/engine/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,13 @@ impl Context {
Ok(self.enter_realm(old_realm))
}

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

/// Get the [`RootShape`].
#[inline]
#[must_use]
Expand Down

0 comments on commit e5f312a

Please sign in to comment.