[−][src]Struct rstack::TraceOptions
Options controlling the behavior of tracing.
Implementations
impl TraceOptions
[src]
pub fn new() -> TraceOptions
[src]
Returns a new TraceOptions
with default settings.
pub fn snapshot(&mut self, snapshot: bool) -> &mut TraceOptions
[src]
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
.
pub fn thread_names(&mut self, thread_names: bool) -> &mut TraceOptions
[src]
If set, the names of the process's threads will be recorded.
Defaults to false
.
pub fn symbols(&mut self, symbols: bool) -> &mut TraceOptions
[src]
If set, information about the symbol at each frame will be recorded.
Defaults to false
.
pub fn ptrace_attach(&mut self, ptrace_attach: bool) -> &mut TraceOptions
[src]
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
.
pub fn trace(&self, pid: u32) -> Result<Process>
[src]
Traces the threads of the specified process.
Trait Implementations
impl Clone for TraceOptions
[src]
fn clone(&self) -> TraceOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TraceOptions
[src]
impl Default for TraceOptions
[src]
fn default() -> TraceOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for TraceOptions
impl Send for TraceOptions
impl Sync for TraceOptions
impl Unpin for TraceOptions
impl UnwindSafe for TraceOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,