pub struct Fuel {
pub min: u32,
pub max: u32,
pub mean: u32,
pub var: f32,
pub calls: u32,
}
Expand description
The fuel consumed (wasm instructions executed) by a callback on the observed interval.
Fields§
§min: u32
The least fuel consumed by a single run.
max: u32
The most fuel consumed by a single run.
mean: u32
The average number of instructions executed per run.
var: f32
Squared standard deviation of individual runs from the average.
Lower value means more consistent CPU load. Higher values mean that some runs are fast and some runs are slow.
Take square root to get stdev.
calls: u32
The number of runs of the given callback on the observed interval.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fuel
impl<'de> Deserialize<'de> for Fuel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Fuel
Auto Trait Implementations§
impl Freeze for Fuel
impl RefUnwindSafe for Fuel
impl Send for Fuel
impl Sync for Fuel
impl Unpin for Fuel
impl UnwindSafe for Fuel
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