pub struct StackTrace {
pub pid: Pid,
pub thread_id: u64,
pub thread_name: Option<String>,
pub os_thread_id: Option<u64>,
pub active: bool,
pub owns_gil: bool,
pub frames: Vec<Frame>,
pub process_info: Option<Arc<ProcessInfo>>,
}
Expand description
Call stack for a single python thread
Fields§
§pid: Pid
The process id than generated this stack trace
thread_id: u64
The python thread id for this stack trace
thread_name: Option<String>
§os_thread_id: Option<u64>
The OS thread id for this stack tracee
active: bool
Whether or not the thread was active
owns_gil: bool
Whether or not the thread held the GIL
frames: Vec<Frame>
The frames
process_info: Option<Arc<ProcessInfo>>
process commandline / parent process info
Implementations§
Source§impl StackTrace
impl StackTrace
pub fn status_str(&self) -> &str
pub fn format_threadid(&self) -> String
Trait Implementations§
Source§impl Clone for StackTrace
impl Clone for StackTrace
Source§fn clone(&self) -> StackTrace
fn clone(&self) -> StackTrace
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StackTrace
impl Debug for StackTrace
Auto Trait Implementations§
impl Freeze for StackTrace
impl RefUnwindSafe for StackTrace
impl Send for StackTrace
impl Sync for StackTrace
impl Unpin for StackTrace
impl UnwindSafe for StackTrace
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