openvm_stark_backend

Trait ChipUsageGetter

Source
pub trait ChipUsageGetter {
    // Required methods
    fn air_name(&self) -> String;
    fn current_trace_height(&self) -> usize;
    fn trace_width(&self) -> usize;

    // Provided methods
    fn constant_trace_height(&self) -> Option<usize> { ... }
    fn current_trace_cells(&self) -> usize { ... }
}
Expand description

A trait to get chip usage information.

Required Methods§

Source

fn air_name(&self) -> String

Source

fn current_trace_height(&self) -> usize

Height of used rows in the main trace.

Source

fn trace_width(&self) -> usize

Width of the main trace

Provided Methods§

Source

fn constant_trace_height(&self) -> Option<usize>

If the chip has a state-independent trace height that is determined upon construction, return this height. This is used to distinguish “static” versus “dynamic” usage metrics.

Source

fn current_trace_cells(&self) -> usize

For metrics collection

Implementations on Foreign Types§

Source§

impl<C: ChipUsageGetter> ChipUsageGetter for Rc<C>

Source§

impl<C: ChipUsageGetter> ChipUsageGetter for Arc<C>

Source§

impl<C: ChipUsageGetter> ChipUsageGetter for RefCell<C>

Source§

impl<C: ChipUsageGetter> ChipUsageGetter for Mutex<C>

Implementors§