pub struct RingStats {
pub dispatches: AtomicU64,
pub readback_stalls: AtomicU64,
pub peak_inflight: AtomicU64,
}Expand description
Statistics collected by the ring at runtime.
Fields§
§dispatches: AtomicU64Total dispatches queued.
readback_stalls: AtomicU64Readbacks that blocked waiting on map_async.
peak_inflight: AtomicU64Max outstanding (in-flight) copies.
Implementations§
Source§impl RingStats
impl RingStats
Sourcepub fn record_dispatch(&self) -> u64
pub fn record_dispatch(&self) -> u64
Record one dispatch; returns the monotonic dispatch index.
Sourcepub fn record_stall(&self)
pub fn record_stall(&self)
Record a stall.
Sourcepub fn update_peak(&self, current: u64)
pub fn update_peak(&self, current: u64)
Update the peak-in-flight watermark.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RingStats
impl RefUnwindSafe for RingStats
impl Send for RingStats
impl Sync for RingStats
impl Unpin for RingStats
impl UnsafeUnpin for RingStats
impl UnwindSafe for RingStats
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