pub struct ProfilingInterpreter {
pub interp: Interpreter,
pub profile: OpcodeProfile,
}Expand description
An interpreter variant that tracks opcode profiling information.
Fields§
§interp: InterpreterUnderlying interpreter.
profile: OpcodeProfileOpcode execution profile.
Implementations§
Source§impl ProfilingInterpreter
impl ProfilingInterpreter
Sourcepub fn execute_chunk(
&mut self,
chunk: &BytecodeChunk,
) -> Result<StackValue, String>
pub fn execute_chunk( &mut self, chunk: &BytecodeChunk, ) -> Result<StackValue, String>
Execute a chunk, collecting profiling data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfilingInterpreter
impl RefUnwindSafe for ProfilingInterpreter
impl Send for ProfilingInterpreter
impl Sync for ProfilingInterpreter
impl Unpin for ProfilingInterpreter
impl UnsafeUnpin for ProfilingInterpreter
impl UnwindSafe for ProfilingInterpreter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more