pub struct CommandProfiler {
stats: Mutex<HashMap<CommandFingerprint, CommandProfile>>,
}
Fields§
§stats: Mutex<HashMap<CommandFingerprint, CommandProfile>>
Implementations§
Source§impl CommandProfiler
impl CommandProfiler
pub fn record_execution(&self, key: CommandFingerprint, start_time: Instant)
pub fn record_cache_hit(&self, key: CommandFingerprint)
pub fn report_summary(&self, start_time: Instant)
Trait Implementations§
Source§impl Default for CommandProfiler
impl Default for CommandProfiler
Source§fn default() -> CommandProfiler
fn default() -> CommandProfiler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CommandProfiler
impl RefUnwindSafe for CommandProfiler
impl Send for CommandProfiler
impl Sync for CommandProfiler
impl Unpin for CommandProfiler
impl UnwindSafe for CommandProfiler
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes