pub struct DeviceStats {
pub frames_dispatched: u64,
pub frames_completed: u64,
pub frames_failed: u64,
pub ema_throughput_fps: f64,
pub queue_depth: u64,
}Expand description
Runtime statistics for a single device slot.
Fields§
§frames_dispatched: u64Total frames dispatched to this device.
frames_completed: u64Total frames completed (successfully processed).
frames_failed: u64Total frames that failed.
ema_throughput_fps: f64Exponential moving-average throughput (frames / second).
queue_depth: u64Current pending queue depth (dispatched but not yet completed).
Implementations§
Source§impl DeviceStats
impl DeviceStats
Sourcepub fn update_ema(&mut self, fps: f64)
pub fn update_ema(&mut self, fps: f64)
Update the EMA throughput given a new measurement (fps).
Trait Implementations§
Source§impl Clone for DeviceStats
impl Clone for DeviceStats
Source§fn clone(&self) -> DeviceStats
fn clone(&self) -> DeviceStats
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 DeviceStats
impl Debug for DeviceStats
Source§impl Default for DeviceStats
impl Default for DeviceStats
Source§fn default() -> DeviceStats
fn default() -> DeviceStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceStats
impl RefUnwindSafe for DeviceStats
impl Send for DeviceStats
impl Sync for DeviceStats
impl Unpin for DeviceStats
impl UnsafeUnpin for DeviceStats
impl UnwindSafe for DeviceStats
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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