[][src]Struct py_spy::Config

pub struct Config {
    pub non_blocking: bool,
    pub native: bool,
    // some fields omitted
}

Options on how to collect samples from a python process

Fields

non_blocking: bool

Whether or not we should stop the python process when taking samples. Setting this to false will reduce the performance impact on the target python process, but can lead to incorrect results like partial stack traces being returned or a higher sampling error rate

native: bool

Whether or not to profile native extensions. Note: this option can not be used with the nonblocking option, as we have to pause the process to collect the native stack traces

Methods

impl Config[src]

pub fn from_commandline() -> Config[src]

Uses clap to set config options from commandline arguments

pub fn from_args(args: &[String]) -> Result<Config>[src]

Trait Implementations

impl Eq for Config[src]

impl Default for Config[src]

fn default() -> Config[src]

Initializes a new Config object with default parameters

impl Clone for Config[src]

impl PartialEq<Config> for Config[src]

impl Debug for Config[src]

Auto Trait Implementations

impl Send for Config

impl Unpin for Config

impl Sync for Config

impl UnwindSafe for Config

impl RefUnwindSafe for Config

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]