pub struct VramMonitor { /* private fields */ }
Expand description
VRAM Monitor for tracking GPU memory usage
Implementations§
Source§impl VramMonitor
impl VramMonitor
Sourcepub fn allocate_buffer(
&mut self,
size: usize,
buffer_type: BufferType,
) -> Result<usize>
pub fn allocate_buffer( &mut self, size: usize, buffer_type: BufferType, ) -> Result<usize>
Allocate VRAM for a buffer
Sourcepub fn deallocate_buffer(&mut self, buffer_id: usize) -> Result<()>
pub fn deallocate_buffer(&mut self, buffer_id: usize) -> Result<()>
Deallocate VRAM for a buffer
Sourcepub fn get_vram_stats(&self) -> VramStats
pub fn get_vram_stats(&self) -> VramStats
Get current VRAM statistics
Sourcepub fn validate_all_vram(&self) -> Result<()>
pub fn validate_all_vram(&self) -> Result<()>
Validate that all operations are in VRAM
Sourcepub fn generate_vram_report(&self) -> String
pub fn generate_vram_report(&self) -> String
Generate detailed VRAM report
Trait Implementations§
Source§impl GpuMonitor for VramMonitor
impl GpuMonitor for VramMonitor
Source§fn get_vram_stats(&self) -> VramStats
fn get_vram_stats(&self) -> VramStats
Get VRAM usage statistics
Source§fn validate_all_vram(&self) -> Result<()>
fn validate_all_vram(&self) -> Result<()>
Validate VRAM-only operation
Source§fn generate_vram_report(&self) -> String
fn generate_vram_report(&self) -> String
Generate VRAM report
Auto Trait Implementations§
impl Freeze for VramMonitor
impl RefUnwindSafe for VramMonitor
impl Send for VramMonitor
impl Sync for VramMonitor
impl Unpin for VramMonitor
impl UnwindSafe for VramMonitor
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