pub struct PerformanceMonitor { /* private fields */ }Expand description
Real-time performance monitor for NPU.
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
Sourcepub fn record_operation(&self, ops: u64)
pub fn record_operation(&self, ops: u64)
Record a completed operation.
Sourcepub fn record_power(&self, power_watts: f32)
pub fn record_power(&self, power_watts: f32)
Record power consumption in watts.
Sourcepub fn get_metrics(&self) -> PerformanceMetrics
pub fn get_metrics(&self) -> PerformanceMetrics
Get current metrics snapshot.
Sourcepub fn get_throughput_gops(&self) -> f64
pub fn get_throughput_gops(&self) -> f64
Get throughput in GOPS (giga operations per second).
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