pub struct ImageCacheStats {
pub atlas_side: u32,
pub resident: usize,
pub resident_cpu_bytes: u64,
pub resident_area: u64,
pub evicted_total: u64,
pub shrinks_total: u64,
pub omitted_total: u64,
}Expand description
What the image cache holds, for memory diagnostics.
Fields§
§atlas_side: u32Side length of the square atlas, in pixels.
resident: usizeImages resident in the atlas.
resident_cpu_bytes: u64Bytes of CPU pixels the residents keep alive (their blobs). A blob the caller still holds is shared, not copied, so this is an upper bound on what the cache alone keeps.
resident_area: u64Area of the residents, in atlas pixels.
evicted_total: u64Residents evicted over the cache’s lifetime.
shrinks_total: u64Times the atlas halved because its residents no longer needed it.
omitted_total: u64Images omitted over the cache’s lifetime.
Trait Implementations§
Source§impl Clone for ImageCacheStats
impl Clone for ImageCacheStats
impl Copy for ImageCacheStats
Source§impl Debug for ImageCacheStats
impl Debug for ImageCacheStats
Source§impl Default for ImageCacheStats
impl Default for ImageCacheStats
impl Eq for ImageCacheStats
Source§impl PartialEq for ImageCacheStats
impl PartialEq for ImageCacheStats
impl StructuralPartialEq for ImageCacheStats
Auto Trait Implementations§
impl Forget for ImageCacheStats
impl Freeze for ImageCacheStats
impl Move for ImageCacheStats
impl RefUnwindSafe for ImageCacheStats
impl Send for ImageCacheStats
impl Sync for ImageCacheStats
impl Unpin for ImageCacheStats
impl UnsafeUnpin for ImageCacheStats
impl UnwindSafe for ImageCacheStats
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