pub struct TraceSnapshot {
pub arm_chosen: [u64; 4],
pub lookup_none: [u64; 5],
pub overlap_dropped: u64,
pub recorded: u64,
pub collapsed: u64,
pub rejected: u64,
pub backlog_added_ns: u64,
pub backlog_retired_ns: u64,
pub rejections: Vec<String>,
}Expand description
A copy of the counters at one moment.
Fields§
§arm_chosen: [u64; 4]Branches resolved to arm i (slot 3 = arm 3 and above).
lookup_none: [u64; 5]Per backend slot (Cpu, Cuda, Vulkan, Metal, other): how often the selector’s runtime
lookup returned NO handle for a candidate, so the picker had no VRAM or load signal for it.
overlap_dropped: u64Region candidates dropped because they overlap a larger chosen region.
recorded: u64Branches recorded by the pathfinder.
collapsed: u64Branches that collapsed to a single arm (no decision point).
rejected: u64Branches finalize_branches rejected.
backlog_added_ns: u64Estimated nanoseconds the executor added to a device’s backlog (row 158: every kernel it submitted to a GPU, at the node’s compile-time estimate).
backlog_retired_ns: u64Estimated nanoseconds taken back out of a device’s backlog when the realize that added them ended.
Equal to backlog_added_ns once every realize has returned; a gap is a leak.
rejections: Vec<String>The newest rejection reasons, oldest first (at most MAX_KEPT_REJECTIONS).
Implementations§
Source§impl TraceSnapshot
impl TraceSnapshot
Sourcepub fn since(&self, earlier: &TraceSnapshot) -> TraceSnapshot
pub fn since(&self, earlier: &TraceSnapshot) -> TraceSnapshot
Counter growth since earlier (saturating). rejections is the reasons added since: the
newest rejected growth entries of this snapshot’s kept reasons.
Sourcepub fn branches_resolved(&self) -> u64
pub fn branches_resolved(&self) -> u64
Total branches resolved, over every arm slot.
Trait Implementations§
Source§impl Clone for TraceSnapshot
impl Clone for TraceSnapshot
Source§impl Debug for TraceSnapshot
impl Debug for TraceSnapshot
Source§impl Default for TraceSnapshot
impl Default for TraceSnapshot
impl Eq for TraceSnapshot
Source§impl PartialEq for TraceSnapshot
impl PartialEq for TraceSnapshot
impl StructuralPartialEq for TraceSnapshot
Auto Trait Implementations§
impl Forget for TraceSnapshot
impl Freeze for TraceSnapshot
impl Move for TraceSnapshot
impl RefUnwindSafe for TraceSnapshot
impl Send for TraceSnapshot
impl Sync for TraceSnapshot
impl Unpin for TraceSnapshot
impl UnsafeUnpin for TraceSnapshot
impl UnwindSafe for TraceSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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