pub struct DensePassCounterSnapshot { /* private fields */ }Expand description
Counter snapshot used to attribute residency activity to one forward pass.
Implementations§
Source§impl DensePassCounterSnapshot
impl DensePassCounterSnapshot
Sourcepub fn from_report(report: &OffloadReport) -> Self
pub fn from_report(report: &OffloadReport) -> Self
Captures logical cache and transfer counters from an offload report.
Sourcepub fn delta(self, earlier: Self) -> DensePassReport
pub fn delta(self, earlier: Self) -> DensePassReport
Computes the saturating completed-forward delta from an earlier snapshot.
Trait Implementations§
Source§impl Clone for DensePassCounterSnapshot
impl Clone for DensePassCounterSnapshot
Source§fn clone(&self) -> DensePassCounterSnapshot
fn clone(&self) -> DensePassCounterSnapshot
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 DensePassCounterSnapshot
Source§impl Debug for DensePassCounterSnapshot
impl Debug for DensePassCounterSnapshot
Source§impl Default for DensePassCounterSnapshot
impl Default for DensePassCounterSnapshot
Source§fn default() -> DensePassCounterSnapshot
fn default() -> DensePassCounterSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DensePassCounterSnapshot
impl RefUnwindSafe for DensePassCounterSnapshot
impl Send for DensePassCounterSnapshot
impl Sync for DensePassCounterSnapshot
impl Unpin for DensePassCounterSnapshot
impl UnsafeUnpin for DensePassCounterSnapshot
impl UnwindSafe for DensePassCounterSnapshot
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