pub struct IncrementalStats {Show 15 fields
pub total_parses: usize,
pub incremental_parses: usize,
pub tokens_reused: usize,
pub tokens_relexed: usize,
pub checkpoints_used: usize,
pub cache_hits: usize,
pub cache_misses: usize,
pub left_checkpoint_distance: usize,
pub right_checkpoint_distance: usize,
pub bytes_relexed: usize,
pub segments_reused_before: usize,
pub segments_reused_after: usize,
pub segments_invalidated: usize,
pub full_tail_fallbacks: usize,
pub tail_fallback_bytes: usize,
}Expand description
Statistics for incremental parsing
Fields§
§total_parses: usize§incremental_parses: usize§tokens_reused: usize§tokens_relexed: usize§checkpoints_used: usize§cache_hits: usize§cache_misses: usize§left_checkpoint_distance: usizeDistance from edit start to the left checkpoint (in bytes)
right_checkpoint_distance: usizeDistance from edit end to the right checkpoint (in bytes)
bytes_relexed: usizeTotal bytes relexed during incremental parsing
segments_reused_before: usizeCount of segments reused before the edit (cache efficiency metric)
segments_reused_after: usizeCount of segments reused after the edit (cache efficiency metric)
segments_invalidated: usizeCount of segments invalidated during edit (cache churn metric)
full_tail_fallbacks: usizeCount of times we had to relex the entire tail (cache coverage gaps)
tail_fallback_bytes: usizeTotal bytes re-lexed while handling full tail fallbacks.
Trait Implementations§
Source§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 UnsafeUnpin 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