pub struct Config {
pub blocking: LockingStrategy,
pub native: bool,
pub port: u32,
pub service: String,
pub env: String,
pub version: String,
pub loop_duration: u64,
/* private fields */
}Expand description
Options on how to collect samples from a python process
Fields§
§blocking: LockingStrategyWhether 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: boolWhether 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
port: u32§service: String§env: String§version: String§loop_duration: u64Implementations§
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.