pub struct CommandTimings { /* private fields */ }Expand description
Thread-safe store for per-command timing data.
Implementations§
Source§impl CommandTimings
impl CommandTimings
Sourcepub fn all_stats(&self) -> Vec<CommandTimingStats>
pub fn all_stats(&self) -> Vec<CommandTimingStats>
Get stats for all commands, sorted by total time descending.
Sourcepub fn stats_for(&self, command: &str) -> Option<CommandTimingStats>
pub fn stats_for(&self, command: &str) -> Option<CommandTimingStats>
Get stats for a single command.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CommandTimings
impl RefUnwindSafe for CommandTimings
impl Send for CommandTimings
impl Sync for CommandTimings
impl Unpin for CommandTimings
impl UnsafeUnpin for CommandTimings
impl UnwindSafe for CommandTimings
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