Struct py_spy::StackTrace [−][src]
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>>,
}Call stack for a single python thread
Fields
pid: PidThe process id than generated this stack trace
thread_id: u64The 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: boolWhether or not the thread was active
owns_gil: boolWhether or not the thread held the GIL
frames: Vec<Frame>The frames
process_info: Option<Arc<ProcessInfo>>process commandline / parent process info
Implementations
impl StackTrace[src]
impl StackTrace[src]pub fn status_str(&self) -> &str[src]
pub fn format_threadid(&self) -> String[src]
Trait Implementations
impl Clone for StackTrace[src]
impl Clone for StackTrace[src]fn clone(&self) -> StackTrace[src]
fn clone(&self) -> StackTrace[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for StackTrace[src]
impl Debug for StackTrace[src]impl Serialize for StackTrace[src]
impl Serialize for StackTrace[src]Auto Trait Implementations
impl RefUnwindSafe for StackTrace
impl Send for StackTrace
impl Sync for StackTrace
impl Unpin for StackTrace
impl UnwindSafe for StackTrace
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,