pub struct TraceOptions { /* private fields */ }
Expand description
Options controlling the behavior of tracing.
Implementations§
Source§impl TraceOptions
impl TraceOptions
Sourcepub fn new() -> TraceOptions
pub fn new() -> TraceOptions
Returns a new TraceOptions
with default settings.
Sourcepub fn snapshot(&mut self, snapshot: bool) -> &mut TraceOptions
pub fn snapshot(&mut self, snapshot: bool) -> &mut TraceOptions
If set, the threads of the process will be traced in a consistent snapshot.
A snapshot-mode trace ensures a consistent view of all threads, but requires that all threads be paused for the entire duration of the trace.
Defaults to false
.
Sourcepub fn thread_names(&mut self, thread_names: bool) -> &mut TraceOptions
pub fn thread_names(&mut self, thread_names: bool) -> &mut TraceOptions
If set, the names of the process’s threads will be recorded.
Defaults to false
.
Sourcepub fn symbols(&mut self, symbols: bool) -> &mut TraceOptions
pub fn symbols(&mut self, symbols: bool) -> &mut TraceOptions
If set, information about the symbol at each frame will be recorded.
Defaults to false
.
Sourcepub fn ptrace_attach(&mut self, ptrace_attach: bool) -> &mut TraceOptions
pub fn ptrace_attach(&mut self, ptrace_attach: bool) -> &mut TraceOptions
If set, rstack
will automatically attach to threads via ptrace.
If disabled, the calling process must already be attached to all traced threads, and the threads must be in the stopped state.
Defaults to true
.
Trait Implementations§
Source§impl Clone for TraceOptions
impl Clone for TraceOptions
Source§fn clone(&self) -> TraceOptions
fn clone(&self) -> TraceOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TraceOptions
impl Debug for TraceOptions
Source§impl Default for TraceOptions
impl Default for TraceOptions
Source§fn default() -> TraceOptions
fn default() -> TraceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraceOptions
impl RefUnwindSafe for TraceOptions
impl Send for TraceOptions
impl Sync for TraceOptions
impl Unpin for TraceOptions
impl UnwindSafe for TraceOptions
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