#[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: Option<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: bool
Annotate JIT functions with a _[j]
suffix.
Default is false
.
annotate_kernel: bool
Annotate 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: bool
Include raw addresses (e.g., 0xbfff0836
) where symbols can’t be found.
Default is false
.
include_pid: bool
Include PID in the root frame. If disabled, the root frame is given the name of the profiled process.
Default is false
.
include_tid: bool
Include TID and PID in the root frame. Implies include_pid
.
Default is false
.
nthreads: usize
The number of threads to use.
Default is the number of logical cores on your machine.
skip_after: Option<String>
If a stack function name is equal to the specified string it will omit all the
following stackframes for that event.
In case no function is matched the whole stack is returned.
Default is None
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl UnwindSafe for Options
Blanket Implementations
Mutably borrows from an owned value. Read more