pub struct Measurement {
pub total_cu: u64,
pub consumed: u64,
pub requested_limit: Option<u64>,
pub over_requested: Option<u64>,
pub cpi_count: u32,
pub cpi_depth: u32,
pub unattributed_pct: f64,
pub instrumentation_overhead_pct: Option<f64>,
pub per_instruction: Vec<InstructionMeasurement>,
pub simulation_success: bool,
}Expand description
The quantitative core of a scenario result.
Fields§
§total_cu: u64Total CU consumed across the transaction.
consumed: u64CU actually consumed (equals total_cu for single-tx scenarios).
requested_limit: Option<u64>Compute-budget requested limit, if a SetComputeUnitLimit was present.
over_requested: Option<u64>CU requested but unused (requested_limit - consumed), if known.
cpi_count: u32Number of CPI invocations observed.
cpi_depth: u32Maximum CPI invoke depth observed.
unattributed_pct: f64Percentage of total CU not attributed to any scope (0..=100).
instrumentation_overhead_pct: Option<f64>Instrumentation overhead as a percentage of total CU, if estimable.
per_instruction: Vec<InstructionMeasurement>Per-instruction breakdown.
simulation_success: boolWhether the simulation completed successfully.
Implementations§
Source§impl Measurement
impl Measurement
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
Source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Measurement
impl Debug for Measurement
Source§impl<'de> Deserialize<'de> for Measurement
impl<'de> Deserialize<'de> for Measurement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Measurement
impl PartialEq for Measurement
Source§fn eq(&self, other: &Measurement) -> bool
fn eq(&self, other: &Measurement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Measurement
impl Serialize for Measurement
impl StructuralPartialEq for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnsafeUnpin for Measurement
impl UnwindSafe for Measurement
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