pub struct NativeFrame {
pub pc: u64,
pub sp: u64,
pub symbol: Option<NativeSymbol>,
pub is_python_runtime: bool,
pub kind: FrameKind,
pub origin: SymbolOrigin,
pub flags: FrameFlags,
}Expand description
A resolved native, kernel, or address-only frame.
Carries the raw program counter and stack pointer from the sample plus
whatever symbol metadata was recovered (or None when address-only).
Fields§
§pc: u64Absolute program counter sampled from the target.
sp: u64Stack pointer at the time of the sample (0 if not recorded).
symbol: Option<NativeSymbol>Resolved symbol, if symbolization succeeded.
is_python_runtime: boolWhether the owning module is the Python runtime
(see is_python_module).
kind: FrameKindHigh-level category: native, kernel, or unknown.
origin: SymbolOriginWhere the symbol info came from (ELF, perf-map, kallsyms, address-only).
flags: FrameFlagsClassification flags shared with PythonFrame consumers.
Implementations§
Source§impl NativeFrame
impl NativeFrame
Sourcepub fn from_address(pc: u64) -> Self
pub fn from_address(pc: u64) -> Self
Build an address-only NativeFrame for an IP that could not be
symbolized. kind is set to FrameKind::Unknown and origin to
SymbolOrigin::AddressOnly.
Sourcepub fn truncated_stack_marker() -> Self
pub fn truncated_stack_marker() -> Self
Sentinel resolved frame for a truncated-stack marker (see
crate::FrameRecord::truncated_stack_marker): the unwinder ran out
of captured stack bytes before reaching the root. Distinguishable from
a failed resolve via FrameFlags::TRUNCATED_STACK.
Trait Implementations§
Source§impl Clone for NativeFrame
impl Clone for NativeFrame
Source§fn clone(&self) -> NativeFrame
fn clone(&self) -> NativeFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NativeFrame
impl Debug for NativeFrame
impl Eq for NativeFrame
Source§impl PartialEq for NativeFrame
impl PartialEq for NativeFrame
Source§fn eq(&self, other: &NativeFrame) -> bool
fn eq(&self, other: &NativeFrame) -> bool
self and other values to be equal, and is used by ==.