Struct rstack::TraceOptions
source · 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 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 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