[−][src]Struct rstack_self::TraceOptions
Options controlling tracing.
Methods
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 trace(&self, child: &mut Command) -> Result<Trace>
[src]
Returns stack traces of all of the threads in the calling process.
The provided Command
should be configured to spawn a process which will call the child
function. It must not use standard input or standard output, but standard error will be
inherited and can be used. The spawned process must "directly" call child
rather than
spawning another process to call it. That is, the parent of the process that calls child
is
the one that will be traced.
Trait Implementations
impl Clone for TraceOptions
[src]
fn clone(&self) -> TraceOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TraceOptions
[src]
fn default() -> TraceOptions
[src]
impl Debug for TraceOptions
[src]
Auto Trait Implementations
impl Send for TraceOptions
impl Sync for TraceOptions
impl Unpin for TraceOptions
impl UnwindSafe for TraceOptions
impl RefUnwindSafe for TraceOptions
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,