Skip to main content

VerifiedPerformanceSample

Struct VerifiedPerformanceSample 

Source
pub struct VerifiedPerformanceSample { /* private fields */ }
Expand description

One independently re-parsed raw timing/summary/diagnostic observation.

capture_core_interval_cycles is the raw numerator spanning batch - 1 inter-result intervals. whole_kernel_nanoseconds is the raw elapsed numerator spanning batch results. The final promoter must consume these observations through the enclosing opaque guard, not accept caller-created lookalike samples.

use u280_evidence_oracle::VerifiedPerformanceSample;
let _forged = VerifiedPerformanceSample {};
use serde::de::DeserializeOwned;
use u280_evidence_oracle::VerifiedPerformanceSample;
fn require_deserialize<T: DeserializeOwned>() {}
require_deserialize::<VerifiedPerformanceSample>();
use u280_evidence_oracle::VerifiedPerformanceSample;
fn require_clone<T: Clone>() {}
require_clone::<VerifiedPerformanceSample>();

Implementations§

Source§

impl VerifiedPerformanceSample

Source

pub fn sample(&self) -> &str

Canonical transport sample path.

Source

pub fn phase(&self) -> &str

Launch phase (warmup or measured).

Source

pub fn sample_index(&self) -> usize

Zero-based sample index within its batch and phase.

Source

pub fn batch(&self) -> u32

Exact launch batch.

Source

pub fn capture_core_interval_cycles(&self) -> u64

Raw capture/core span in cycles over batch - 1 intervals.

Source

pub fn memory_retirement_interval_cycles(&self) -> u64

Raw memory-retirement span in cycles over batch - 1 intervals.

Source

pub fn whole_kernel_nanoseconds(&self) -> u64

Raw whole-kernel elapsed time in nanoseconds over batch results.

Source

pub fn is_required_performance_population(&self) -> bool

Whether this sample belongs to the required p95 population.

Trait Implementations§

Source§

impl Debug for VerifiedPerformanceSample

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for VerifiedPerformanceSample

Source§

fn eq(&self, other: &VerifiedPerformanceSample) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for VerifiedPerformanceSample

Source§

impl StructuralPartialEq for VerifiedPerformanceSample

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.