pub struct ProfileRow {
pub name: String,
pub remembered: bool,
pub calls: u64,
pub failures: u64,
pub steps: u64,
pub steps_with_callees: u64,
pub backtracked_bytes: u64,
pub repeats: u64,
pub repeated_steps: u64,
pub memo_hits: u64,
pub memo_stores: u64,
pub growths: u64,
}Expand description
What a parse did in the rules of one name.
Fields§
§name: StringThe name of the rules.
remembered: boolWhether their results are remembered, in a parse that started again as in its first run.
calls: u64Calls, also those that a remembered result or a left recursion answered.
failures: u64Calls that ran the rule and failed.
steps: u64Steps spent in the rule’s own code, not in the rules it called.
steps_with_callees: u64Steps from the calls that ran the rule to their ends, the rules it called included. Where a rule calls itself, or a template another instance of itself, the outermost call counts.
backtracked_bytes: u64Bytes that failed calls had got through before they failed: from where each started to the farthest point one of its tries failed at.
repeats: u64Calls at a position where the rule had been called before, with the same flags, the same context of columns and captures and the same recording of failures: what remembering the rule would answer. The passes that grow a left recursion call the rules of its cycle again, which count here though each pass runs them anew by design.
repeated_steps: u64Steps from the calls counted in repeats that ran the rule to their ends, the rules
they called included, outside another such call of the rules of the name: what
remembering the rule would save at most. Calls made while skipping ignored text count
none, since a parse outside a profile ends a skip from where the last one started
without running it again.
memo_hits: u64Calls that a remembered result answered, a remembered failure included.
memo_stores: u64Results that were remembered.
growths: u64Passes of a left recursion that made the match longer.