pub struct Timings { /* private fields */ }Expand description
Collects timing data for expand phases and command_exists calls.
Implementations§
Source§impl Timings
impl Timings
pub fn new() -> Self
pub fn record_phase(&mut self, name: &str, duration: Duration)
pub fn record_command_exists( &mut self, command: &str, found: bool, duration: Duration, cached: bool, )
pub fn phases(&self) -> &[Phase]
pub fn command_exists_calls(&self) -> &[CommandExistsCall]
pub fn total_duration(&self) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timings
impl RefUnwindSafe for Timings
impl Send for Timings
impl Sync for Timings
impl Unpin for Timings
impl UnsafeUnpin for Timings
impl UnwindSafe for Timings
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