pub struct BootloaderDebugTracer {
pub result: Arc<OnceCell<Result<BootloaderDebug, String>>>,
}
Expand description
The role of this tracer is to read the memory slots directly from bootloader memory at the end of VM execution - and put them into BootloaderDebug object.
Fields§
§result: Arc<OnceCell<Result<BootloaderDebug, String>>>
Trait Implementations§
source§impl<S, H: HistoryMode> DynTracer<S, SimpleMemory<H>> for BootloaderDebugTracer
impl<S, H: HistoryMode> DynTracer<S, SimpleMemory<H>> for BootloaderDebugTracer
fn before_decoding(&mut self, _state: VmLocalStateData<'_>, _memory: &M)
fn after_decoding( &mut self, _state: VmLocalStateData<'_>, _data: AfterDecodingData, _memory: &M )
fn before_execution( &mut self, _state: VmLocalStateData<'_>, _data: BeforeExecutionData, _memory: &M, _storage: Rc<RefCell<S>> )
fn after_execution( &mut self, _state: VmLocalStateData<'_>, _data: AfterExecutionData, _memory: &M, _storage: Rc<RefCell<S>> )
source§impl<S: WriteStorage, H: HistoryMode> VmTracer<S, H> for BootloaderDebugTracer
impl<S: WriteStorage, H: HistoryMode> VmTracer<S, H> for BootloaderDebugTracer
source§fn after_vm_execution(
&mut self,
state: &mut ZkSyncVmState<S, H>,
_bootloader_state: &BootloaderState,
_stop_reason: VmExecutionStopReason
)
fn after_vm_execution( &mut self, state: &mut ZkSyncVmState<S, H>, _bootloader_state: &BootloaderState, _stop_reason: VmExecutionStopReason )
Run after the vm execution
§fn initialize_tracer(
&mut self,
_state: &mut VmState<StorageOracle<S, H>, SimpleMemory<H>, InMemoryEventSink<H>, PrecompilesProcessorWithHistory<H>, DecommitterOracle<false, S, H>, DummyTracer>
)
fn initialize_tracer( &mut self, _state: &mut VmState<StorageOracle<S, H>, SimpleMemory<H>, InMemoryEventSink<H>, PrecompilesProcessorWithHistory<H>, DecommitterOracle<false, S, H>, DummyTracer> )
Initialize the tracer before the vm execution
§fn finish_cycle(
&mut self,
_state: &mut VmState<StorageOracle<S, H>, SimpleMemory<H>, InMemoryEventSink<H>, PrecompilesProcessorWithHistory<H>, DecommitterOracle<false, S, H>, DummyTracer>,
_bootloader_state: &mut BootloaderState
) -> TracerExecutionStatus
fn finish_cycle( &mut self, _state: &mut VmState<StorageOracle<S, H>, SimpleMemory<H>, InMemoryEventSink<H>, PrecompilesProcessorWithHistory<H>, DecommitterOracle<false, S, H>, DummyTracer>, _bootloader_state: &mut BootloaderState ) -> TracerExecutionStatus
Run after each vm execution cycle
Auto Trait Implementations§
impl RefUnwindSafe for BootloaderDebugTracer
impl Send for BootloaderDebugTracer
impl Sync for BootloaderDebugTracer
impl Unpin for BootloaderDebugTracer
impl UnwindSafe for BootloaderDebugTracer
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request