Struct wasmedge_sdk::config::StatisticsConfigOptions
source · pub struct StatisticsConfigOptions { /* private fields */ }
Expand description
Defines a group of the statistics configuration options.
StatisticsConfigOptions is used to set the statistics configuration options, which are
-
count_instructions
determines if measuring the count of instructions when running a compiled or pure WASM. -
measure_cost
determines if measuring the instruction costs when running a compiled or pure WASM. -
measure_time
determines if measuring the running time when running a compiled or pure WASM.
Implementations§
source§impl StatisticsConfigOptions
impl StatisticsConfigOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of StatisticsConfigOptions.
sourcepub fn count_instructions(self, enable: bool) -> Self
pub fn count_instructions(self, enable: bool) -> Self
Sets the instruction counting option.
Argument
enable
specifies if support instruction counting or not when execution after AOT compilation.
sourcepub fn measure_cost(self, enable: bool) -> Self
pub fn measure_cost(self, enable: bool) -> Self
Sets the cost measuring option.
Argument
enable
specifies if support cost measuring or not when execution after AOT compilation.
sourcepub fn measure_time(self, enable: bool) -> Self
pub fn measure_time(self, enable: bool) -> Self
Sets the time measuring option.
Argument
enable
specifies if support time measuring or not when execution after AOT compilation.
Trait Implementations§
source§impl Clone for StatisticsConfigOptions
impl Clone for StatisticsConfigOptions
source§fn clone(&self) -> StatisticsConfigOptions
fn clone(&self) -> StatisticsConfigOptions
Returns a copy 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 StatisticsConfigOptions
impl Debug for StatisticsConfigOptions
source§impl Default for StatisticsConfigOptions
impl Default for StatisticsConfigOptions
source§fn default() -> StatisticsConfigOptions
fn default() -> StatisticsConfigOptions
Returns the “default value” for a type. Read more
impl Copy for StatisticsConfigOptions
Auto Trait Implementations§
impl RefUnwindSafe for StatisticsConfigOptions
impl Send for StatisticsConfigOptions
impl Sync for StatisticsConfigOptions
impl Unpin for StatisticsConfigOptions
impl UnwindSafe for StatisticsConfigOptions
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