pub struct GlCacheStats {
pub src: CacheStats,
pub dst: CacheStats,
pub nv_r8: CacheStats,
pub nv_uv: CacheStats,
}Expand description
Combined snapshot of every EGLImage cache on the GL processor (source, destination, the Path-B NV R8 source cache, and its chroma-plane view for hardware-filtered NV resizes).
Fields§
§src: CacheStats§dst: CacheStats§nv_r8: CacheStats§nv_uv: 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, nv_r8 and
nv_uv routinely name the same source buffer (one NV12 tensor
imported several ways), and entries over one buffer pin it 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
impl 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