#[non_exhaustive]pub struct Options {
pub annotate_jit: bool,
pub annotate_kernel: bool,
pub event_filter: Option<String>,
pub include_addrs: bool,
pub include_pid: bool,
pub include_tid: bool,
pub nthreads: usize,
pub skip_after: Vec<String>,
}Expand description
perf folder configuration options.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.annotate_jit: boolAnnotate JIT functions with a _[j] suffix.
Default is false.
annotate_kernel: boolAnnotate kernel functions with a _[k] suffix.
Default is false.
event_filter: Option<String>Only consider samples of the given event type (see perf list). If this option is
set to None, it will be set to the first encountered event type.
Default is None.
include_addrs: boolInclude raw addresses (e.g., 0xbfff0836) where symbols can’t be found.
Default is false.
include_pid: boolInclude PID in the root frame. If disabled, the root frame is given the name of the profiled process.
Default is false.
include_tid: boolInclude TID and PID in the root frame. Implies include_pid.
Default is false.
nthreads: usizeThe number of threads to use.
Default is the number of logical cores on your machine.
skip_after: Vec<String>If a stack function name is equal to any of the specified strings it will omit all the following stackframes for that event. In case no function is matched the whole stack is returned. Default is not omitting any.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more