pub struct ParserDfaStats {Show 21 fields
pub states: usize,
pub transitions: usize,
pub max_row_width: usize,
pub dense_rows: usize,
pub sparse_rows: usize,
pub empty_rows: usize,
pub dense_slots: usize,
pub sparse_entries: usize,
pub row_width_histogram: [usize; 5],
pub populated_edge_histogram: [usize; 6],
pub edge_density_histogram: [usize; 6],
pub hot_bytes: usize,
pub cold_bytes: usize,
pub semantic_contexts: usize,
pub semantic_context_bytes: usize,
pub semantic_provenance_records: usize,
pub semantic_provenance_bytes: usize,
pub states_created: usize,
pub states_deduplicated: usize,
pub fingerprint_candidates: usize,
pub fingerprint_collisions: usize,
}Expand description
Storage and learning measurements for one parser DFA.
Fields§
§states: usize§transitions: usize§max_row_width: usize§dense_rows: usize§sparse_rows: usize§empty_rows: usize§dense_slots: usize§sparse_entries: usize§row_width_histogram: [usize; 5]Widths <=64, <=128, <=256, <=512, and >512.
populated_edge_histogram: [usize; 6]Populated-edge counts 0, 1, 2-3, 4-7, 8-15, and >=16.
edge_density_histogram: [usize; 6]Empty, <=1%, <=5%, <=12.5%, <=25%, and >25% populated rows.
hot_bytes: usize§cold_bytes: usize§semantic_contexts: usizeStore-wide semantic-context records. Populated by
ParserAtnSimulator::parser_dfa_stats; zero for one standalone DFA.
semantic_context_bytes: usizeRetained element storage for the store-wide semantic-context arena.
semantic_provenance_records: usizeStore-wide semantic-provenance records used by parameterized predicates.
semantic_provenance_bytes: usizeRetained element storage for the optional semantic-provenance arena.
states_created: usize§states_deduplicated: usize§fingerprint_candidates: usize§fingerprint_collisions: usizeTrait Implementations§
Source§impl Clone for ParserDfaStats
impl Clone for ParserDfaStats
Source§fn clone(&self) -> ParserDfaStats
fn clone(&self) -> ParserDfaStats
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 ParserDfaStats
Source§impl Debug for ParserDfaStats
impl Debug for ParserDfaStats
Source§impl Default for ParserDfaStats
impl Default for ParserDfaStats
Source§fn default() -> ParserDfaStats
fn default() -> ParserDfaStats
Returns the “default value” for a type. Read more
impl Eq for ParserDfaStats
Source§impl PartialEq for ParserDfaStats
impl PartialEq for ParserDfaStats
impl StructuralPartialEq for ParserDfaStats
Auto Trait Implementations§
impl Freeze for ParserDfaStats
impl RefUnwindSafe for ParserDfaStats
impl Send for ParserDfaStats
impl Sync for ParserDfaStats
impl Unpin for ParserDfaStats
impl UnsafeUnpin for ParserDfaStats
impl UnwindSafe for ParserDfaStats
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