pub struct PerformanceMonitor { /* private fields */ }
Expand description
Performance Monitor for tracking GPU operation performance
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
Sourcepub fn start_operation(&mut self, operation: String)
pub fn start_operation(&mut self, operation: String)
Start timing an operation
Sourcepub fn end_operation(&mut self) -> Result<Duration>
pub fn end_operation(&mut self) -> Result<Duration>
End timing the current operation
Sourcepub fn record_operation(&mut self, operation: String, duration: Duration)
pub fn record_operation(&mut self, operation: String, duration: Duration)
Record an operation with its duration
Sourcepub fn get_performance_stats(&self) -> PerformanceStats
pub fn get_performance_stats(&self) -> PerformanceStats
Get performance statistics
Sourcepub fn get_operation_stats(&self, operation: &str) -> Option<&OperationStats>
pub fn get_operation_stats(&self, operation: &str) -> Option<&OperationStats>
Get statistics for a specific operation
Sourcepub fn clear_stats(&mut self)
pub fn clear_stats(&mut self)
Clear all statistics
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate performance report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceMonitor
impl RefUnwindSafe for PerformanceMonitor
impl Send for PerformanceMonitor
impl Sync for PerformanceMonitor
impl Unpin for PerformanceMonitor
impl UnwindSafe for PerformanceMonitor
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