#[non_exhaustive]pub struct TracingOptions {
pub frequency: u32,
pub dtrace_outfile: Option<PathBuf>,
pub perf_raw_outfile: Option<PathBuf>,
pub fold_outfile: Option<PathBuf>,
pub fold_dtrace_options: Option<Options>,
pub fold_perf_options: Option<Options>,
pub flamegraph_outfile: Option<PathBuf>,
pub flamegraph_options: Option<fn() -> Options<'static>>,
}
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.frequency: u32
Samples per second.
dtrace_outfile: Option<PathBuf>
Output filename for dtrace
. Example: my_worker.stacks
.
perf_raw_outfile: Option<PathBuf>
Output filename for the raw data emitted by perf record
. Example: my_worker.perf.data
.
fold_outfile: Option<PathBuf>
If set, what the write the folded output to.
fold_dtrace_options: Option<Options>
§fold_perf_options: Option<Options>
§flamegraph_outfile: Option<PathBuf>
If set, what to write the output flamegraph SVG file to.
flamegraph_options: Option<fn() -> Options<'static>>
Implementations§
source§impl TracingOptions
impl TracingOptions
sourcepub fn builder() -> NewTracingOptionsBuilder
pub fn builder() -> NewTracingOptionsBuilder
Create a new TracingOptions
§Arguments
frequency
: Samples per second.dtrace_outfile
: Output filename fordtrace
. Example:my_worker.stacks
. (optional)perf_raw_outfile
: Output filename for the raw data emitted byperf record
. Example:my_worker.perf.data
. (optional)fold_outfile
: If set, what the write the folded output to. (optional)fold_dtrace_options
: (optional)fold_perf_options
: (optional)flamegraph_outfile
: If set, what to write the output flamegraph SVG file to. (optional)flamegraph_options
: (optional)
Trait Implementations§
source§impl Clone for TracingOptions
impl Clone for TracingOptions
source§fn clone(&self) -> TracingOptions
fn clone(&self) -> TracingOptions
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 moreAuto Trait Implementations§
impl Freeze for TracingOptions
impl RefUnwindSafe for TracingOptions
impl Send for TracingOptions
impl Sync for TracingOptions
impl Unpin for TracingOptions
impl UnwindSafe for TracingOptions
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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