pub struct PerformanceProfilerBuilder { /* private fields */ }Expand description
Builder for performance profiler
Implementations§
Source§impl PerformanceProfilerBuilder
impl PerformanceProfilerBuilder
Sourcepub fn threshold(self, threshold: PerformanceThreshold) -> Self
pub fn threshold(self, threshold: PerformanceThreshold) -> Self
Add a threshold
Sourcepub fn max_frame_time(self, max_ms: f64) -> Self
pub fn max_frame_time(self, max_ms: f64) -> Self
Add a max frame time threshold
Sourcepub fn mean_frame_time(self, max_mean_ms: f64) -> Self
pub fn mean_frame_time(self, max_mean_ms: f64) -> Self
Add a mean frame time threshold
Sourcepub fn build(self) -> PerformanceProfiler
pub fn build(self) -> PerformanceProfiler
Build the profiler
Trait Implementations§
Source§impl Debug for PerformanceProfilerBuilder
impl Debug for PerformanceProfilerBuilder
Source§impl Default for PerformanceProfilerBuilder
impl Default for PerformanceProfilerBuilder
Source§fn default() -> PerformanceProfilerBuilder
fn default() -> PerformanceProfilerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerformanceProfilerBuilder
impl RefUnwindSafe for PerformanceProfilerBuilder
impl Send for PerformanceProfilerBuilder
impl Sync for PerformanceProfilerBuilder
impl Unpin for PerformanceProfilerBuilder
impl UnsafeUnpin for PerformanceProfilerBuilder
impl UnwindSafe for PerformanceProfilerBuilder
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