[−][src]Struct rstack::TraceOptions
Options controlling the behavior of tracing.
Methods
impl TraceOptions[src]
impl TraceOptionspub fn new() -> TraceOptions[src]
pub fn new() -> TraceOptionsReturns a new TraceOptions with default settings.
pub fn snapshot(&mut self, snapshot: bool) -> &mut TraceOptions[src]
pub fn snapshot(&mut self, snapshot: bool) -> &mut TraceOptionsIf 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]
pub fn thread_names(&mut self, thread_names: bool) -> &mut TraceOptionsIf set, the names of the process's threads will be recorded.
Defaults to false.
pub fn symbols(&mut self, symbols: bool) -> &mut TraceOptions[src]
pub fn symbols(&mut self, symbols: bool) -> &mut TraceOptionsIf set, information about the symbol at each frame will be recorded.
Defaults to false.
pub fn trace(&self, pid: u32) -> Result<Process>[src]
pub fn trace(&self, pid: u32) -> Result<Process>Traces the threads of the specified process.
Trait Implementations
impl Default for TraceOptions[src]
impl Default for TraceOptionsfn default() -> TraceOptions[src]
fn default() -> TraceOptionsimpl Clone for TraceOptions[src]
impl Clone for TraceOptionsfn clone(&self) -> TraceOptions[src]
fn clone(&self) -> TraceOptionsfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for TraceOptions[src]
impl Debug for TraceOptionsAuto Trait Implementations
impl Send for TraceOptions
impl Send for TraceOptionsimpl Sync for TraceOptions
impl Sync for TraceOptionsBlanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut T