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 Freeze for StatisticsConfigOptions
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