pub struct ParseCacheStats {
pub hits: usize,
pub misses: usize,
pub invalidated: usize,
pub module_invalidations: usize,
pub statement_count: usize,
pub full_parse_units: usize,
pub incremental_parse_units: usize,
pub elapsed: Duration,
}Expand description
Cache statistics from one incremental parse.
Fields§
§hits: usizeNumber of unchanged statements reused from cache.
misses: usizeNumber of statements parsed fresh.
invalidated: usizeNumber of prior cached statements invalidated for this source.
module_invalidations: usizeNumber of cached source files invalidated through module invalidation.
statement_count: usizeTotal statement count in the parsed source.
full_parse_units: usizeFull-parse work estimate, in statement units.
incremental_parse_units: usizeIncremental work estimate, in statement units.
elapsed: DurationWall-clock time spent in the incremental parse call.
Implementations§
Source§impl ParseCacheStats
impl ParseCacheStats
Sourcepub fn estimated_speedup(&self) -> f64
pub fn estimated_speedup(&self) -> f64
Structural speedup estimate based on avoided statement parses.
Trait Implementations§
Source§impl Clone for ParseCacheStats
impl Clone for ParseCacheStats
Source§fn clone(&self) -> ParseCacheStats
fn clone(&self) -> ParseCacheStats
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 moreimpl Copy for ParseCacheStats
Source§impl Debug for ParseCacheStats
impl Debug for ParseCacheStats
Source§impl Default for ParseCacheStats
impl Default for ParseCacheStats
Source§fn default() -> ParseCacheStats
fn default() -> ParseCacheStats
Returns the “default value” for a type. Read more
impl Eq for ParseCacheStats
Source§impl PartialEq for ParseCacheStats
impl PartialEq for ParseCacheStats
Source§fn eq(&self, other: &ParseCacheStats) -> bool
fn eq(&self, other: &ParseCacheStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseCacheStats
Auto Trait Implementations§
impl Freeze for ParseCacheStats
impl RefUnwindSafe for ParseCacheStats
impl Send for ParseCacheStats
impl Sync for ParseCacheStats
impl Unpin for ParseCacheStats
impl UnsafeUnpin for ParseCacheStats
impl UnwindSafe for ParseCacheStats
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