Struct solana_rbpf::vm::Tracer[][src]

pub struct Tracer {
    pub log: Vec<[u64; 12]>,
}

Used for instruction tracing

Fields

log: Vec<[u64; 12]>

Contains the state at every instruction in order of execution

Implementations

impl Tracer[src]

pub fn trace(&mut self, state: [u64; 12])[src]

Logs the state of a single instruction

pub fn write<W: Write>(&self, out: &mut W, program: &[u8]) -> Result<(), Error>[src]

Use this method to print the log of this tracer

pub fn compare(interpreter: &Self, jit: &Self) -> bool[src]

Compares an interpreter trace and a JIT trace. The log of the JIT can be longer because it only validates the instruction meter at branches.

Trait Implementations

impl Clone for Tracer[src]

impl Default for Tracer[src]

Auto Trait Implementations

impl RefUnwindSafe for Tracer

impl Send for Tracer

impl Sync for Tracer

impl Unpin for Tracer

impl UnwindSafe for Tracer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,