Struct py_spy_for_datakit::StackTrace
source · 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: 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§
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 more