pub struct PythonSpy {
    pub pid: Pid,
    pub process: Process,
    pub version: Version,
    pub interpreter_address: usize,
    pub threadstate_address: usize,
    pub python_filename: PathBuf,
    pub version_string: String,
    pub config: Config,
    pub short_filenames: HashMap<String, Option<String>>,
    pub python_thread_ids: HashMap<u64, Tid>,
    pub python_thread_names: HashMap<u64, String>,
    pub dockerized: bool,
}
Expand description

Lets you retrieve stack traces of a running python program

Fields§

§pid: Pid§process: Process§version: Version§interpreter_address: usize§threadstate_address: usize§python_filename: PathBuf§version_string: String§config: Config§short_filenames: HashMap<String, Option<String>>§python_thread_ids: HashMap<u64, Tid>§python_thread_names: HashMap<u64, String>§dockerized: bool

Implementations§

Constructs a new PythonSpy object.

Creates a PythonSpy object, retrying up to max_retries times. Mainly useful for the case where the process is just started and symbols or the python interpreter might not be loaded yet.

Gets a StackTrace for each thread in the current process

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more