[−][src]Struct py_spy::Config
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]
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]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,