Struct solana_rbpf::vm::Tracer [−][src]
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
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,