pub struct PerformanceMonitor { /* private fields */ }Expand description
Performance monitoring and optimization utilities
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
pub fn new(max_samples: usize) -> Self
pub fn start_frame(&mut self)
pub fn end_frame(&mut self)
pub fn get_average_frame_time(&self) -> f64
pub fn get_fps(&self) -> f64
pub fn is_performance_good(&self) -> bool
pub fn get_stats(&self) -> &RenderStats
pub fn update_stats(&mut self, stats: RenderStats)
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