pub struct IncrementalStats {
pub cache_hits: usize,
pub cache_misses: usize,
pub invalidations: usize,
pub nodes_reused: usize,
pub nodes_compiled: usize,
}Expand description
Statistics for incremental compilation.
Fields§
§cache_hits: usizeNumber of cache hits
cache_misses: usizeNumber of cache misses
invalidations: usizeNumber of invalidations
nodes_reused: usizeNumber of nodes reused from cache
nodes_compiled: usizeNumber of nodes freshly compiled
Implementations§
Source§impl IncrementalStats
impl IncrementalStats
Sourcepub fn reuse_rate(&self) -> f64
pub fn reuse_rate(&self) -> f64
Get the reuse rate for nodes (0.0 to 1.0).
Sourcepub fn total_compilations(&self) -> usize
pub fn total_compilations(&self) -> usize
Get the total number of compilations.
Trait Implementations§
Source§impl Clone for IncrementalStats
impl Clone for IncrementalStats
Source§fn clone(&self) -> IncrementalStats
fn clone(&self) -> IncrementalStats
Returns a duplicate of the value. Read more
1.0.0 · 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 IncrementalStats
impl Debug for IncrementalStats
Source§impl Default for IncrementalStats
impl Default for IncrementalStats
Source§fn default() -> IncrementalStats
fn default() -> IncrementalStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IncrementalStats
impl RefUnwindSafe for IncrementalStats
impl Send for IncrementalStats
impl Sync for IncrementalStats
impl Unpin for IncrementalStats
impl UnwindSafe for IncrementalStats
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