pub struct GpuMemoryStats {
pub total_allocated: usize,
pub peak_usage: usize,
pub allocation_count: u64,
pub pool_hits: u64,
pub pool_misses: u64,
pub avg_transfer_bandwidth: f64,
}Expand description
GPU memory usage statistics for optimization decisions
Fields§
§total_allocated: usizeTotal allocated memory in bytes
peak_usage: usizePeak memory usage
allocation_count: u64Number of buffer allocations
pool_hits: u64Number of buffer pool hits
pool_misses: u64Number of buffer pool misses
avg_transfer_bandwidth: f64Average transfer bandwidth (bytes/second)
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 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> 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