pub enum ProfilerStrategy {
None,
JitDump,
PerfMap,
}Expand description
Optional profiling strategy. JitDump is the Linux perf record
flow; it writes a jit-<pid>.dump file the OS-level profiler can
read. PerfMap is the simpler symbol-name-only Linux variant. Both
require the wasmtime/profiling cargo feature, which we pull in
via the jitdump feature flag on the scripting crate; non-Linux
builds should leave this as None.
Variants§
Trait Implementations§
Source§impl Clone for ProfilerStrategy
impl Clone for ProfilerStrategy
Source§fn clone(&self) -> ProfilerStrategy
fn clone(&self) -> ProfilerStrategy
Returns a duplicate 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 ProfilerStrategy
impl Debug for ProfilerStrategy
Source§impl Default for ProfilerStrategy
impl Default for ProfilerStrategy
Source§fn default() -> ProfilerStrategy
fn default() -> ProfilerStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProfilerStrategy
impl PartialEq for ProfilerStrategy
impl Copy for ProfilerStrategy
impl Eq for ProfilerStrategy
impl StructuralPartialEq for ProfilerStrategy
Auto Trait Implementations§
impl Freeze for ProfilerStrategy
impl RefUnwindSafe for ProfilerStrategy
impl Send for ProfilerStrategy
impl Sync for ProfilerStrategy
impl Unpin for ProfilerStrategy
impl UnsafeUnpin for ProfilerStrategy
impl UnwindSafe for ProfilerStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more