pub struct PoolStats {
pub hits: usize,
pub misses: usize,
pub total_allocations: usize,
pub total_releases: usize,
pub hit_rate: f64,
pub unique_shapes: usize,
pub total_bytes_pooled: usize,
pub total_buffers_pooled: usize,
}Expand description
Memory pool statistics
Fields§
§hits: usizeNumber of buffer reuses (cache hits)
misses: usizeNumber of new allocations (cache misses)
total_allocations: usizeTotal number of allocation requests
total_releases: usizeTotal number of buffer releases
hit_rate: f64Cache hit rate (hits / total)
unique_shapes: usizeNumber of unique shape signatures in pool
total_bytes_pooled: usizeTotal bytes currently pooled
total_buffers_pooled: usizeTotal number of buffers currently pooled
Trait Implementations§
impl StructuralPartialEq for PoolStats
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnwindSafe for PoolStats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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