pub struct CounterStats {
pub count: u64,
pub total_time: Duration,
pub min_time: Duration,
pub max_time: Duration,
pub avg_time: Duration,
pub p95_time: Duration,
pub p99_time: Duration,
pub throughput: f64,
pub total_bytes: u64,
pub data_throughput: f64,
}
Expand description
Performance statistics for a counter
Fields§
§count: u64
Total number of measurements
total_time: Duration
Total time spent
min_time: Duration
Minimum time
max_time: Duration
Maximum time
avg_time: Duration
Average time
p95_time: Duration
95th percentile time
p99_time: Duration
99th percentile time
throughput: f64
Total throughput (operations per second)
total_bytes: u64
Total data processed (bytes)
data_throughput: f64
Data throughput (bytes per second)
Trait Implementations§
Source§impl Clone for CounterStats
impl Clone for CounterStats
Source§fn clone(&self) -> CounterStats
fn clone(&self) -> CounterStats
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 moreAuto Trait Implementations§
impl Freeze for CounterStats
impl RefUnwindSafe for CounterStats
impl Send for CounterStats
impl Sync for CounterStats
impl Unpin for CounterStats
impl UnwindSafe for CounterStats
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