pub struct IndexInstrumentation { /* private fields */ }Expand description
Index lifecycle instrumentation for state durations and transitions.
Implementations§
Source§impl IndexInstrumentation
impl IndexInstrumentation
Sourcepub fn new() -> IndexInstrumentation
pub fn new() -> IndexInstrumentation
Create a new instrumentation tracker.
Sourcepub fn record_state_transition(&self, from: IndexStateKind, to: IndexStateKind)
pub fn record_state_transition(&self, from: IndexStateKind, to: IndexStateKind)
Record a state transition.
Sourcepub fn record_phase_transition(&self, from: IndexPhase, to: IndexPhase)
pub fn record_phase_transition(&self, from: IndexPhase, to: IndexPhase)
Record a build-phase transition.
Sourcepub fn record_early_exit(&self, record: EarlyExitRecord)
pub fn record_early_exit(&self, record: EarlyExitRecord)
Record an early-exit event.
Sourcepub fn snapshot(&self) -> IndexInstrumentationSnapshot
pub fn snapshot(&self) -> IndexInstrumentationSnapshot
Return a current snapshot including elapsed time in the active state/phase.
Trait Implementations§
Source§impl Debug for IndexInstrumentation
impl Debug for IndexInstrumentation
Source§impl Default for IndexInstrumentation
impl Default for IndexInstrumentation
Source§fn default() -> IndexInstrumentation
fn default() -> IndexInstrumentation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for IndexInstrumentation
impl !RefUnwindSafe for IndexInstrumentation
impl Send for IndexInstrumentation
impl Sync for IndexInstrumentation
impl Unpin for IndexInstrumentation
impl UnsafeUnpin for IndexInstrumentation
impl UnwindSafe for IndexInstrumentation
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