pub struct Trace { /* private fields */ }Expand description
The counters. The process has one (global); tests build their own so they cannot race with
the rest of the test binary.
Implementations§
Source§impl Trace
impl Trace
Sourcepub fn record_arm_chosen(&self, arm: usize)
pub fn record_arm_chosen(&self, arm: usize)
The executor resolved a branch to arm arm.
Sourcepub fn record_lookup_none(&self, backend: BackendId)
pub fn record_lookup_none(&self, backend: BackendId)
The selector’s runtime lookup returned no handle for a candidate on backend (it had a lookup
configured), so the picker had no VRAM or load signal for that candidate.
Sourcepub fn record_regions(
&self,
overlap_dropped: usize,
recorded: usize,
collapsed: usize,
rejection_reasons: &[String],
)
pub fn record_regions( &self, overlap_dropped: usize, recorded: usize, collapsed: usize, rejection_reasons: &[String], )
The pathfinder’s outcome for one propose pass.
Sourcepub fn record_backlog_added(&self, ns: u64)
pub fn record_backlog_added(&self, ns: u64)
The executor added ns of estimated work to a device’s backlog.
Sourcepub fn record_backlog_retired(&self, ns: u64)
pub fn record_backlog_retired(&self, ns: u64)
The executor took ns back out of a device’s backlog (its realize ended or unwound).
Sourcepub fn snapshot(&self) -> TraceSnapshot
pub fn snapshot(&self) -> TraceSnapshot
Copy the counters.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Trace
impl Forget for Trace
impl Move for Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
impl UnwindSafe for Trace
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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