pub struct EpochMeasurement {
pub bytes: u64,
pub duration: Duration,
pub send_stall: Duration,
}Expand description
What the pipeline observed during one byte-based epoch.
Fields§
§bytes: u64Bytes acked by the writer threads during the epoch.
duration: DurationWall time the epoch spanned.
send_stall: DurationTime the producer spent blocked on full writer channels in the epoch.
Implementations§
Source§impl EpochMeasurement
impl EpochMeasurement
Sourcepub fn throughput_mbps(&self) -> f64
pub fn throughput_mbps(&self) -> f64
Writer throughput in MB/s (MiB, matching the measurement notes).
A zero-duration epoch is unmeasurable, not infinitely fast (two epoch
boundaries can land on the same clock tick); it reports 0.0 and
Controller::on_epoch discards the epoch entirely.
Sourcepub fn stall_fraction(&self) -> f64
pub fn stall_fraction(&self) -> f64
Fraction of the epoch the producer sat blocked on channel sends.
Trait Implementations§
Source§impl Clone for EpochMeasurement
impl Clone for EpochMeasurement
Source§fn clone(&self) -> EpochMeasurement
fn clone(&self) -> EpochMeasurement
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 moreimpl Copy for EpochMeasurement
Auto Trait Implementations§
impl Freeze for EpochMeasurement
impl RefUnwindSafe for EpochMeasurement
impl Send for EpochMeasurement
impl Sync for EpochMeasurement
impl Unpin for EpochMeasurement
impl UnsafeUnpin for EpochMeasurement
impl UnwindSafe for EpochMeasurement
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more