Skip to main content

SolverStats

Struct SolverStats 

Source
pub struct SolverStats { /* private fields */ }

Implementations§

Source§

impl SolverStats

Source

pub fn start(&mut self)

Marks the start of solving.

Source

pub fn elapsed(&self) -> Duration

Solver-active time since start, excluding pauses; zero before it.

Source

pub fn active_elapsed(&self) -> Option<Duration>

Solver-active time since start, or None before the solve started.

Source

pub fn started_at(&self) -> Option<Instant>

The start instant, shifted forward by every finished pause.

Source

pub fn is_paused(&self) -> bool

Source

pub fn pause(&mut self)

Source

pub fn resume(&mut self)

Source

pub fn begin_phase(&mut self, phase_type: &'static str)

Opens the next phase; counters recorded from now on belong to it. A phase still running is finished first.

Source

pub fn end_phase(&mut self)

Freezes the running phase’s record and folds it into the run totals.

Source

pub fn phase_elapsed(&self) -> Option<Duration>

Solver-active time the running phase has spent, if a phase is running.

Source

pub fn phase(&self) -> Option<&PhaseStats>

Statistics of the phase that is running, if any.

Source

pub fn phase_mut(&mut self) -> Option<&mut PhaseStats>

Source

pub fn step_count(&self) -> u64

Steps taken across all phases.

Source

pub fn moves_generated(&self) -> u64

Candidate moves actually yielded by cursors across all phases. Unrequested logical neighborhood tails are not generated work.

Source

pub fn moves_evaluated(&self) -> u64

Source

pub fn moves_speculative(&self) -> u64

Candidates evaluated ahead of the sequential decision point by parallel evaluation and then discarded.

Source

pub fn moves_accepted(&self) -> u64

Source

pub fn moves_applied(&self) -> u64

Source

pub fn moves_not_doable(&self) -> u64

Source

pub fn moves_acceptor_rejected(&self) -> u64

Source

pub fn moves_forager_ignored(&self) -> u64

Source

pub fn moves_hard_improving(&self) -> u64

Source

pub fn moves_hard_neutral(&self) -> u64

Source

pub fn moves_hard_worse(&self) -> u64

Source

pub fn conflict_repair_provider_generated(&self) -> u64

Source

pub fn conflict_repair_duplicate_filtered(&self) -> u64

Source

pub fn conflict_repair_illegal_filtered(&self) -> u64

Source

pub fn conflict_repair_not_doable_filtered(&self) -> u64

Source

pub fn conflict_repair_hard_improving(&self) -> u64

Source

pub fn conflict_repair_exposed(&self) -> u64

Source

pub fn score_calculations(&self) -> u64

Source

pub fn construction_slots_assigned(&self) -> u64

Source

pub fn construction_slots_kept(&self) -> u64

Source

pub fn construction_slots_no_doable(&self) -> u64

Source

pub fn scalar_assignment_required_remaining(&self) -> u64

Required scalar-assignment rows still unassigned, summed over groups.

Source

pub fn record_generated_batch(&mut self, count: u64, duration: Duration)

Records one or more generated candidate moves and the time spent generating them.

Source

pub fn record_selector_generated( &mut self, selector_index: usize, count: u64, duration: Duration, )

Source

pub fn record_generation_time(&mut self, duration: Duration)

Records generation time that did not itself yield a counted move.

Source

pub fn record_generated_move(&mut self, duration: Duration)

Records a single generated candidate move and the time spent generating it.

Source

pub fn record_evaluated_move(&mut self, duration: Duration)

Records a move evaluation and the time spent evaluating it.

Source

pub fn record_selector_evaluated( &mut self, selector_index: usize, duration: Duration, )

Source

pub fn record_move_accepted(&mut self)

Source

pub fn record_selector_accepted(&mut self, selector_index: usize)

Source

pub fn record_move_applied(&mut self)

Source

pub fn record_selector_applied(&mut self, selector_index: usize)

Source

pub fn record_move_not_doable(&mut self)

Source

pub fn record_selector_not_doable(&mut self, selector_index: usize)

Source

pub fn record_move_acceptor_rejected(&mut self)

Source

pub fn record_selector_acceptor_rejected(&mut self, selector_index: usize)

Source

pub fn record_moves_forager_ignored(&mut self, count: u64)

Source

pub fn record_move_hard_improving(&mut self)

Source

pub fn record_move_hard_neutral(&mut self)

Source

pub fn record_move_hard_worse(&mut self)

Source

pub fn record_conflict_repair_provider_generated(&mut self, count: u64)

Source

pub fn record_conflict_repair_duplicate_filtered(&mut self)

Source

pub fn record_conflict_repair_illegal_filtered(&mut self)

Source

pub fn record_conflict_repair_not_doable_filtered(&mut self)

Source

pub fn record_conflict_repair_hard_improving(&mut self)

Source

pub fn record_conflict_repair_exposed(&mut self)

Source

pub fn record_step(&mut self)

Records a step completion.

Source

pub fn record_score_calculation(&mut self)

Records a score calculation.

Source

pub fn record_move_speculative(&mut self)

Records a candidate that parallel evaluation evaluated ahead of the sequential decision point and then discarded.

Source

pub fn record_construction_slot_assigned(&mut self)

Source

pub fn record_construction_slot_kept(&mut self)

Source

pub fn record_construction_slot_no_doable(&mut self)

Source

pub fn record_move_kind_generated(&mut self, move_label: &'static str)

Source

pub fn record_move_kind_evaluated( &mut self, move_label: &'static str, score_ordering: Ordering, )

Source

pub fn record_move_kind_evaluated_unscored(&mut self, move_label: &'static str)

Source

pub fn record_move_kind_accepted(&mut self, move_label: &'static str)

Source

pub fn record_move_kind_applied( &mut self, move_label: &'static str, score_improvement: f64, )

Source

pub fn record_move_kind_not_doable(&mut self, move_label: &'static str)

Source

pub fn record_move_kind_acceptor_rejected( &mut self, move_label: &'static str, score_ordering: Ordering, )

Source

pub fn record_move_kind_forager_ignored( &mut self, move_label: &'static str, count: u64, )

Source

pub fn record_applied_move_trace(&mut self, applied_move: AppliedMoveTelemetry)

Source

pub fn record_selector_generated_with_label( &mut self, selector_index: usize, selector_label: impl Into<String>, count: u64, duration: Duration, )

Source

pub fn record_scalar_assignment_required_remaining( &mut self, group_name: &'static str, count: u64, )

Records the required rows a scalar-assignment group still leaves unassigned. The run value sums the latest count of every group; the running phase keeps the latest count it saw.

Source

pub fn generation_time(&self) -> Duration

Source

pub fn evaluation_time(&self) -> Duration

Source

pub fn generated_throughput(&self) -> Throughput

Source

pub fn evaluated_throughput(&self) -> Throughput

Source

pub fn acceptance_rate(&self) -> f64

Source

pub fn snapshot(&self) -> SolverTelemetry

Source

pub fn snapshot_without_applied_move_trace(&self) -> SolverTelemetry

Source

pub fn moves_score_improving(&self) -> u64

Source

pub fn moves_applied_improving(&self) -> u64

Trait Implementations§

Source§

impl Debug for SolverStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SolverStats

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more