#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.