pub struct PerformanceMonitor {
pub late_callbacks: Arc<AtomicU32>,
pub current_load_percent: Arc<AtomicU8>,
}Expand description
Monitor for audio thread performance.
It tracks the number of late callbacks and the current CPU load percentage of the audio processing thread.
Fields§
§late_callbacks: Arc<AtomicU32>Number of times the audio thread failed to meet the real-time deadline.
current_load_percent: Arc<AtomicU8>Current CPU load of the audio processing thread in percentage (0-100).
Trait Implementations§
Source§impl Clone for PerformanceMonitor
impl Clone for PerformanceMonitor
Source§fn clone(&self) -> PerformanceMonitor
fn clone(&self) -> PerformanceMonitor
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 moreAuto Trait Implementations§
impl Freeze for PerformanceMonitor
impl RefUnwindSafe for PerformanceMonitor
impl Send for PerformanceMonitor
impl Sync for PerformanceMonitor
impl Unpin for PerformanceMonitor
impl UnsafeUnpin 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