pub struct PipelineStats {
pub total_iterations: usize,
pub negation: NegationOptStats,
pub constant_folding: ConstantFoldingStats,
pub algebraic: AlgebraicSimplificationStats,
pub strength_reduction: StrengthReductionStats,
pub distributivity: DistributivityStats,
pub quantifier_opt: QuantifierOptStats,
pub dead_code: DeadCodeStats,
pub iterations: Vec<IterationStats>,
pub reached_fixed_point: bool,
pub stopped_at_max_iterations: bool,
}Expand description
Cumulative statistics from all pipeline iterations.
Fields§
§total_iterations: usizeTotal number of iterations performed
negation: NegationOptStatsNegation optimization statistics (accumulated)
constant_folding: ConstantFoldingStatsConstant folding statistics (accumulated)
algebraic: AlgebraicSimplificationStatsAlgebraic simplification statistics (accumulated)
strength_reduction: StrengthReductionStatsStrength reduction statistics (accumulated)
distributivity: DistributivityStatsDistributivity optimization statistics (accumulated)
quantifier_opt: QuantifierOptStatsQuantifier optimization statistics (accumulated)
dead_code: DeadCodeStatsDead code elimination statistics (accumulated)
iterations: Vec<IterationStats>Statistics per iteration
reached_fixed_point: boolWhether the pipeline reached a fixed point
stopped_at_max_iterations: boolWhether the pipeline was stopped due to max iterations
Implementations§
Source§impl PipelineStats
impl PipelineStats
Sourcepub fn total_optimizations(&self) -> usize
pub fn total_optimizations(&self) -> usize
Get total number of optimizations applied across all iterations.
Sourcepub fn most_productive_iteration(&self) -> Option<(usize, &IterationStats)>
pub fn most_productive_iteration(&self) -> Option<(usize, &IterationStats)>
Get the most productive iteration (one with most optimizations).
Trait Implementations§
Source§impl Clone for PipelineStats
impl Clone for PipelineStats
Source§fn clone(&self) -> PipelineStats
fn clone(&self) -> PipelineStats
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 PipelineStats
impl Debug for PipelineStats
Source§impl Default for PipelineStats
impl Default for PipelineStats
Source§fn default() -> PipelineStats
fn default() -> PipelineStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PipelineStats
impl RefUnwindSafe for PipelineStats
impl Send for PipelineStats
impl Sync for PipelineStats
impl Unpin for PipelineStats
impl UnwindSafe for PipelineStats
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