pub struct GpuMemoryStats {
pub total_allocations: usize,
pub total_deallocations: usize,
pub active_allocations: usize,
pub peak_memory_usage: usize,
pub current_memory_usage: usize,
pub fragmentation_ratio: f32,
pub average_allocation_size: f32,
pub cache_hits: usize,
pub cache_misses: usize,
}Fields§
§total_allocations: usizeTotal allocations made
total_deallocations: usizeTotal deallocations made
active_allocations: usizeCurrent active allocations
peak_memory_usage: usizePeak memory usage (bytes)
current_memory_usage: usizeCurrent memory usage (bytes)
fragmentation_ratio: f32Memory fragmentation ratio (0.0 - 1.0)
average_allocation_size: f32Average allocation size
cache_hits: usizeNumber of cache hits
cache_misses: usizeNumber of cache misses
Trait Implementations§
Source§impl Clone for GpuMemoryStats
impl Clone for GpuMemoryStats
Source§fn clone(&self) -> GpuMemoryStats
fn clone(&self) -> GpuMemoryStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuMemoryStats
impl Debug for GpuMemoryStats
Source§impl Default for GpuMemoryStats
impl Default for GpuMemoryStats
Source§fn default() -> GpuMemoryStats
fn default() -> GpuMemoryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GpuMemoryStats
impl RefUnwindSafe for GpuMemoryStats
impl Send for GpuMemoryStats
impl Sync for GpuMemoryStats
impl Unpin for GpuMemoryStats
impl UnsafeUnpin for GpuMemoryStats
impl UnwindSafe for GpuMemoryStats
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
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