pub struct PerformanceDebugger { /* private fields */ }Expand description
Performance debugging utilities
Implementations§
Source§impl PerformanceDebugger
impl PerformanceDebugger
Sourcepub fn start_timer(&mut self, name: &str)
pub fn start_timer(&mut self, name: &str)
Start timing an operation
Sourcepub fn stop_timer(&mut self, name: &str) -> Option<Duration>
pub fn stop_timer(&mut self, name: &str) -> Option<Duration>
Stop timing and record duration
Sourcepub fn timing_stats(&self, name: &str) -> Option<TimingStats>
pub fn timing_stats(&self, name: &str) -> Option<TimingStats>
Get timing statistics
Sourcepub fn all_stats(&self) -> Vec<TimingStats>
pub fn all_stats(&self) -> Vec<TimingStats>
Get all timing statistics
Sourcepub fn timing_report(&self) -> String
pub fn timing_report(&self) -> String
Format timing report
Trait Implementations§
Source§impl Clone for PerformanceDebugger
impl Clone for PerformanceDebugger
Source§fn clone(&self) -> PerformanceDebugger
fn clone(&self) -> PerformanceDebugger
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 moreSource§impl Debug for PerformanceDebugger
impl Debug for PerformanceDebugger
Auto Trait Implementations§
impl Freeze for PerformanceDebugger
impl RefUnwindSafe for PerformanceDebugger
impl Send for PerformanceDebugger
impl Sync for PerformanceDebugger
impl Unpin for PerformanceDebugger
impl UnwindSafe for PerformanceDebugger
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more