pub struct GlCacheStats {
pub src: CacheStats,
pub dst: CacheStats,
pub nv_r8: CacheStats,
}Expand description
Combined snapshot of every EGLImage cache on the GL processor (source, destination, and the Path-B NV R8 source cache).
Fields§
§src: CacheStats§dst: CacheStats§nv_r8: CacheStatsImplementations§
Source§impl GlCacheStats
impl GlCacheStats
Sourcepub fn total_misses(&self) -> u64
pub fn total_misses(&self) -> u64
Total imports performed (cache misses) across all caches — the number steady-state loops assert stays flat.
Sourcepub fn total_peak_entries(&self) -> usize
pub fn total_peak_entries(&self) -> usize
Peak entries summed across all caches — an UPPER bound on how many
buffers were pinned at once, not an exact count: src and nv_r8
routinely name the same source buffer (one NV12 tensor imported
two ways), and two entries over one buffer pin that buffer once.
Use the per-cache peaks to size capacity; use this to bound memory.
Sourcepub fn total_evictions(&self) -> u64
pub fn total_evictions(&self) -> u64
Evictions across all caches — zero in a correctly sized steady state.
Trait Implementations§
Source§impl Clone for GlCacheStats
impl Clone for GlCacheStats
Source§fn clone(&self) -> GlCacheStats
fn clone(&self) -> GlCacheStats
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 GlCacheStats
Source§impl Debug for GlCacheStats
impl Debug for GlCacheStats
impl Eq for GlCacheStats
Source§impl PartialEq for GlCacheStats
impl PartialEq for GlCacheStats
impl StructuralPartialEq for GlCacheStats
Auto Trait Implementations§
impl Freeze for GlCacheStats
impl RefUnwindSafe for GlCacheStats
impl Send for GlCacheStats
impl Sync for GlCacheStats
impl Unpin for GlCacheStats
impl UnsafeUnpin for GlCacheStats
impl UnwindSafe for GlCacheStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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