pub struct TraceStats {
pub total_events: u64,
pub rules_fired: u64,
pub goals_resolved: u64,
pub cache_hits: u64,
pub backtracks: u64,
pub max_depth_reached: u64,
}Expand description
Aggregated counters derived from recorded events.
Fields§
§total_events: u64§rules_fired: u64§goals_resolved: u64§cache_hits: u64§backtracks: u64§max_depth_reached: u64Implementations§
Source§impl TraceStats
impl TraceStats
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Fraction of resolved goals that were served from cache.
Returns 0.0 when no goals have been resolved yet.
Trait Implementations§
Source§impl Clone for TraceStats
impl Clone for TraceStats
Source§fn clone(&self) -> TraceStats
fn clone(&self) -> TraceStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraceStats
impl Debug for TraceStats
Source§impl Default for TraceStats
impl Default for TraceStats
Source§fn default() -> TraceStats
fn default() -> TraceStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraceStats
impl RefUnwindSafe for TraceStats
impl Send for TraceStats
impl Sync for TraceStats
impl Unpin for TraceStats
impl UnsafeUnpin for TraceStats
impl UnwindSafe for TraceStats
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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