#[non_exhaustive]pub struct TracingOptions {
pub frequency: u32,
pub samply_outfile: Option<PathBuf>,
pub perf_raw_outfile: Option<PathBuf>,
pub fold_outfile: Option<PathBuf>,
pub fold_perf_options: Option<Options>,
pub flamegraph_outfile: Option<PathBuf>,
pub flamegraph_options: Option<fn() -> Options<'static>>,
pub setup_command: Option<CowStr>,
}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: u32Samples per second.
samply_outfile: Option<PathBuf>Output filename for samply. Example: my_worker.profile.
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_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>>§setup_command: Option<CowStr>Command to setup tracing before running the command, i.e. to install perf or set kernel flags.
NOTE: Currently is only run for remote/cloud ssh hosts, not local hosts.
Example: see DEBIAN_PERF_SETUP_COMMAND.
Implementations§
Source§impl TracingOptions
impl TracingOptions
Sourcepub fn builder() -> NewTracingOptionsBuilder
pub fn builder() -> NewTracingOptionsBuilder
Create a new TracingOptions
§Arguments
frequency: Samples per second.samply_outfile: Output filename forsamply. Example:my_worker.profile. (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_perf_options: (optional)flamegraph_outfile: If set, what to write the output flamegraph SVG file to. (optional)flamegraph_options: (optional)setup_command: Command to setup tracing before running the command, i.e. to installperfor set kernel flags.
NOTE: Currently is only run for remote/cloud ssh hosts, not local hosts.
Example: see DEBIAN_PERF_SETUP_COMMAND. (optional)
Trait Implementations§
Auto Trait Implementations§
impl Forget for TracingOptions
impl Freeze for TracingOptions
impl Move for TracingOptions
impl RefUnwindSafe for TracingOptionswhere
String: RefUnwindSafe,
impl Send for TracingOptions
impl Sync for TracingOptions
impl Unpin for TracingOptions
impl UnsafeUnpin for TracingOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
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,
§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> ⓘ
§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].