pub struct PerformanceMonitor { /* private fields */ }
Expand description
Performance monitoring hooks
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
pub fn new() -> Self
pub fn start_render_timing(&self, component_id: ComponentId) -> RenderTimer
pub fn record_render_time(&self, component_id: ComponentId, duration: Duration)
pub fn record_update_time(&self, component_id: ComponentId, duration: Duration)
pub fn record_mount_time(&self, component_id: ComponentId, duration: Duration)
pub fn get_average_render_time( &self, component_id: ComponentId, ) -> Option<Duration>
pub fn get_render_statistics( &self, component_id: ComponentId, ) -> RenderStatistics
Trait Implementations§
Source§impl Clone for PerformanceMonitor
impl Clone for PerformanceMonitor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting