Skip to main content

CompileStats

Struct CompileStats 

Source
pub struct CompileStats {
Show 19 fields pub nodes: usize, pub gnodes: usize, pub inlined: usize, pub aliased: usize, pub thunks: usize, pub by_name: usize, pub folded: usize, pub cached_defs: usize, pub fold_abandoned: usize, pub fold_skipped: usize, pub fold_fuel: u64, pub fold_nanos: u64, pub speculative: u64, pub substituted: usize, pub beta: u64, pub startup_values: usize, pub startup_nanos: u64, pub startup_call_hits: u64, pub startup_fallbacks: usize,
}
Expand description

What the compiler did.

Fields§

§nodes: usize

Value nodes.

§gnodes: usize

Generator nodes.

§inlined: usize

Operator applications inlined.

§aliased: usize

Arguments substituted directly.

§thunks: usize

Arguments bound to thunks.

§by_name: usize

Arguments re-evaluated by name.

§folded: usize

Subexpressions folded to constants.

§cached_defs: usize

State-level definitions cached once per frame activation.

§fold_abandoned: usize

Folds abandoned because they ran out of fuel.

§fold_skipped: usize

Folds not attempted because the compile-time budget was spent.

§fold_fuel: u64

Loop iterations spent folding.

§fold_nanos: u64

Wall time spent folding, in nanoseconds.

§speculative: u64

Filters, function constructors and set operations the core builds eagerly where TLC is lazy (Node::Spec).

§substituted: usize

INSTANCE substitutions bound.

§beta: u64

Applications of lazy function constructors evaluated for their argument alone (Node::Beta).

§startup_values: usize

Constant definitions the binder left to the core, evaluated here (crate::compile::Handoff::deferred), and closed zero-arity definitions too large to fold, evaluated once at their first use (crate::compile::SETTLE_FUEL).

§startup_nanos: u64

Wall time spent evaluating them, in nanoseconds.

§startup_call_hits: u64

Calls their evaluation answered from its call results.

§startup_fallbacks: usize

Those the core did not evaluate whose value the binder’s evaluation supplied (crate::compile::Handoff::startup_evaluator).

Trait Implementations§

Source§

impl Clone for CompileStats

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CompileStats

Source§

impl Debug for CompileStats

Source§

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

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

impl Default for CompileStats

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.