pub struct LatencyReport {
pub count: usize,
pub min: Duration,
pub max: Duration,
pub mean: Duration,
pub std_dev: Duration,
pub p50: Duration,
pub p90: Duration,
pub p95: Duration,
pub p99: Duration,
pub p999: Duration,
pub histogram_buckets: Vec<HistogramBucket>,
}Expand description
Summary report of latency measurements.
Fields§
§count: usizeTotal number of samples.
min: DurationMinimum latency.
max: DurationMaximum latency.
mean: DurationMean (average) latency.
std_dev: DurationStandard deviation.
p50: Duration50th percentile (median).
p90: Duration90th percentile.
p95: Duration95th percentile.
p99: Duration99th percentile.
p999: Duration99.9th percentile.
histogram_buckets: Vec<HistogramBucket>Histogram distribution buckets.
Implementations§
Source§impl LatencyReport
impl LatencyReport
Sourcepub fn has_tail_latency_above(&self, threshold: Duration) -> bool
pub fn has_tail_latency_above(&self, threshold: Duration) -> bool
Returns true if any percentile exceeds the given threshold.
Sourcepub fn compare(&self, baseline: &Self) -> LatencyComparison
pub fn compare(&self, baseline: &Self) -> LatencyComparison
Compare against a baseline report and return the comparison.
Trait Implementations§
Source§impl Clone for LatencyReport
impl Clone for LatencyReport
Source§fn clone(&self) -> LatencyReport
fn clone(&self) -> LatencyReport
Returns a duplicate of the value. Read more
1.0.0 · 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 LatencyReport
impl Debug for LatencyReport
Auto Trait Implementations§
impl Freeze for LatencyReport
impl RefUnwindSafe for LatencyReport
impl Send for LatencyReport
impl Sync for LatencyReport
impl Unpin for LatencyReport
impl UnwindSafe for LatencyReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).