pub struct PerformancePlugin { /* private fields */ }Expand description
Implementations§
Source§impl PerformancePlugin
impl PerformancePlugin
Sourcepub fn max_samples(self, count: usize) -> Self
pub fn max_samples(self, count: usize) -> Self
Set maximum number of frame samples to keep
Sourcepub fn report_interval(self, interval: Duration) -> Self
pub fn report_interval(self, interval: Duration) -> Self
Set report interval
Trait Implementations§
Source§impl Default for PerformancePlugin
impl Default for PerformancePlugin
Source§impl Plugin for PerformancePlugin
impl Plugin for PerformancePlugin
Source§fn on_init(&mut self, ctx: &mut PluginContext) -> Result<()>
fn on_init(&mut self, ctx: &mut PluginContext) -> Result<()>
Called when the plugin is first registered Read more
Source§fn on_mount(&mut self, _ctx: &mut PluginContext) -> Result<()>
fn on_mount(&mut self, _ctx: &mut PluginContext) -> Result<()>
Called when the app starts running Read more
Source§fn on_tick(&mut self, ctx: &mut PluginContext, delta: Duration) -> Result<()>
fn on_tick(&mut self, ctx: &mut PluginContext, delta: Duration) -> Result<()>
Called on each tick (frame update) Read more
Source§fn on_unmount(&mut self, ctx: &mut PluginContext) -> Result<()>
fn on_unmount(&mut self, ctx: &mut PluginContext) -> Result<()>
Called when the app is shutting down Read more
Auto Trait Implementations§
impl Freeze for PerformancePlugin
impl RefUnwindSafe for PerformancePlugin
impl Send for PerformancePlugin
impl Sync for PerformancePlugin
impl Unpin for PerformancePlugin
impl UnsafeUnpin for PerformancePlugin
impl UnwindSafe for PerformancePlugin
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