Skip to main content

LinearLowering

Struct LinearLowering 

Source
pub(crate) struct LinearLowering {
    pub(crate) benchmark: &'static str,
    pub(crate) iterations: u32,
    pub(crate) wall_ns: Stats,
    pub(crate) functions: usize,
    pub(crate) program: Arc<Program>,
}
Expand description

What lowering one benchmark to cove_ir cost, and the program every vm measurement of that benchmark runs.

One per benchmark rather than one for the package, because that is the unit cove_ir::lower_entry lowers: it lowers what one entry reaches and stubs the rest, which is what cove run --backend vm asks for, so the row is named for the benchmark it lowered rather than for the package.

Fields§

§benchmark: &'static str§iterations: u32§wall_ns: Stats§functions: usize

How many entries the function table has.

A slice still gives every declaration of the package a table entry, and the ones the entry did not reach are stubs, so this is the count for the thing that was timed rather than a count of what the entry actually calls.

§program: Arc<Program>

Implementations§

Source§

impl LinearLowering

Source

pub(crate) fn to_json(&self) -> String

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, 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.