Skip to main content

Trace

Struct Trace 

Source
pub struct Trace {
    pub block_size: usize,
    pub sessions: Vec<SessionTrace>,
}

Fields§

§block_size: usize§sessions: Vec<SessionTrace>

Implementations§

Source§

impl Trace

Source

pub fn from_mooncake(path: &Path, trace_block_size: usize) -> Result<Self>

Source

pub fn from_mooncake_rows( rows: Vec<MooncakeRow>, trace_block_size: usize, ) -> Result<Self>

Source

pub fn from_applied_compute_agentic( path: &Path, trace_block_size: usize, shared_prefix_ratio: f64, num_prefix_groups: usize, ) -> Result<Self>

Source

pub fn synthetic(spec: SyntheticTraceSpec) -> Result<Self>

Source

pub fn validate_for_trace_mode(&self) -> Result<()>

Source

pub fn validate_for_concurrency_mode(&self) -> Result<()>

Source

pub fn normalize_session_starts(self) -> Result<Self>

Source

pub fn speed_up_timing(self, ratio: f64) -> Result<Self>

Source

pub fn rescale_session_start_span(self, duration_ms: u64) -> Result<Self>

Source

pub fn rescale_ready_span(self, duration_ms: u64) -> Result<Self>

Source

pub fn expand_hash_prefix_depth(self, factor: usize) -> Self

Source

pub fn duplicate_hash_space(self, copies: usize) -> Self

Source

pub fn partition_by_session(&self, spec: SessionPartitionSpec) -> Vec<Self>

Source

pub fn to_single_turn_requests(&self) -> Result<Vec<DirectRequest>>

Source

pub fn is_single_turn(&self) -> bool

Source

pub fn to_router_sequences( &self, worker_id: WorkerId, hash_mode: SequenceHashMode, ) -> Result<Vec<RouterSequence>>

Source

pub fn into_trace_driver(self) -> Result<WorkloadDriver>

Source

pub fn into_concurrency_driver( self, max_in_flight: usize, ) -> Result<WorkloadDriver>

Source

pub fn into_trace_driver_with_block_size( self, engine_block_size: usize, ) -> Result<WorkloadDriver>

Source

pub fn into_delta_accumulating_trace_driver_with_block_size( self, engine_block_size: usize, ) -> Result<WorkloadDriver>

Source

pub fn into_concurrency_driver_with_block_size( self, engine_block_size: usize, max_in_flight: usize, ) -> Result<WorkloadDriver>

Source

pub fn into_delta_accumulating_concurrency_driver_with_block_size( self, engine_block_size: usize, max_in_flight: usize, ) -> Result<WorkloadDriver>

Trait Implementations§

Source§

impl Clone for Trace

Source§

fn clone(&self) -> Trace

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Trace

Source§

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

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

impl PartialEq for Trace

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Trace

Auto Trait Implementations§

§

impl Freeze for Trace

§

impl RefUnwindSafe for Trace

§

impl Send for Trace

§

impl Sync for Trace

§

impl Unpin for Trace

§

impl UnsafeUnpin for Trace

§

impl UnwindSafe for Trace

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> BlockMetadata for T
where T: Clone + Send + Sync + 'static,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more