Enum zksync_vm2_interface::CycleStats
source · pub enum CycleStats {
Keccak256(u32),
Sha256(u32),
EcRecover(u32),
Secp256r1Verify(u32),
Decommit(u32),
StorageRead,
StorageWrite,
}
Expand description
Cycle statistics emitted by the VM and supplied to Tracer::on_extra_prover_cycles()
.
Variants§
Keccak256(u32)
Call to the keccak256
precompile with the specified number of hash cycles.
Sha256(u32)
Call to the sha256
precompile with the specified number of hash cycles.
EcRecover(u32)
Call to the ecrecover
precompile with the specified number of hash cycles.
Secp256r1Verify(u32)
Call to the secp256r1_verify
precompile with the specified number of hash cycles.
Decommit(u32)
Decommitting an opcode.
StorageRead
Reading a slot from the VM storage.
StorageWrite
Writing a slot to the VM storage.
Trait Implementations§
source§impl Clone for CycleStats
impl Clone for CycleStats
source§fn clone(&self) -> CycleStats
fn clone(&self) -> CycleStats
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CycleStats
impl Debug for CycleStats
impl Copy for CycleStats
Auto Trait Implementations§
impl Freeze for CycleStats
impl RefUnwindSafe for CycleStats
impl Send for CycleStats
impl Sync for CycleStats
impl Unpin for CycleStats
impl UnwindSafe for CycleStats
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)