INNER CODE UNIT · Rust
trace_length
GuildOfWeavers/distaff · src/processor/decoder/mod.rs:82
pub fn trace_length(&self) -> usize {
return self.op_counter.len();
}
/// Returns value of the current step pointer.
#[cfg(test)]
pub fn current_step(&self) -> usize {
return self.step;
}
/// Returns the max value of the context stack reached during program execution.
pub fn max_ctx_stack_depth(&self) -> usize {
// outer-most context doesn't count because it is always just 0
return self.ctx_stack.len() - 1;
}
/// Returns the max value of the loop stack reached during program execution.
pub fn max_loop_stack_depth(&self) -> usize {