pub struct BufferHeapStats {
pub buffer_count: u32,
pub overflow_count: usize,
pub high_water_bytes: u64,
pub primary_heap_bytes: u64,
}Expand description
Snapshot of a Metal buffer heap allocator’s state.
Fields§
§buffer_count: u32Total number of buffers ever allocated from the heap hierarchy (monotonically increasing). This counter does NOT decrease when buffers are freed.
overflow_count: usizeNumber of overflow heaps currently alive (0 in steady state).
high_water_bytes: u64Peak total bytes used across all heaps since last reset.
primary_heap_bytes: u64Size of the primary heap in bytes.
Trait Implementations§
Source§impl Clone for BufferHeapStats
impl Clone for BufferHeapStats
Source§fn clone(&self) -> BufferHeapStats
fn clone(&self) -> BufferHeapStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BufferHeapStats
Source§impl Debug for BufferHeapStats
impl Debug for BufferHeapStats
Source§impl Default for BufferHeapStats
impl Default for BufferHeapStats
Source§fn default() -> BufferHeapStats
fn default() -> BufferHeapStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufferHeapStats
impl RefUnwindSafe for BufferHeapStats
impl Send for BufferHeapStats
impl Sync for BufferHeapStats
impl Unpin for BufferHeapStats
impl UnsafeUnpin for BufferHeapStats
impl UnwindSafe for BufferHeapStats
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