pub struct Frame {
pub iid: Option<u64>,
pub function_name_id: Option<u64>,
pub mapping_id: Option<u64>,
pub rel_pc: Option<u64>,
pub source_path_iid: Option<u64>,
pub line_number: Option<u32>,
}Fields§
§iid: Option<u64>Interning key. Starts from 1, 0 is the same as “not set”.
function_name_id: Option<u64>E.g. “fopen” id of string.
mapping_id: Option<u64>The mapping in which this frame’s instruction pointer resides. iid of Mapping.iid.
If set (non-zero), rel_pc MUST also be set. If mapping_id is 0 (not set), this frame has no associated memory mapping (e.g., symbolized frames without address information).
Starts from 1, 0 is the same as “not set”.
rel_pc: Option<u64>Instruction pointer relative to the start of the mapping. MUST be set if mapping_id is set (non-zero). Ignored if mapping_id is 0.
source_path_iid: Option<u64>Source file path for this frame. This is typically set during online symbolization when symbol information is available at trace collection time. If not set, source file paths may be added later via offline symbolization (see ModuleSymbols).
Starts from 1, 0 is the same as “not set”.
iid of InternedData.source_paths.
line_number: Option<u32>Line number in the source file for this frame. This is typically set during online symbolization when symbol information is available at trace collection time. If not set, line numbers may be added later via offline symbolization (see ModuleSymbols).
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn function_name_id(&self) -> u64
pub fn function_name_id(&self) -> u64
Returns the value of function_name_id, or the default value if function_name_id is unset.
Sourcepub fn mapping_id(&self) -> u64
pub fn mapping_id(&self) -> u64
Returns the value of mapping_id, or the default value if mapping_id is unset.
Sourcepub fn rel_pc(&self) -> u64
pub fn rel_pc(&self) -> u64
Returns the value of rel_pc, or the default value if rel_pc is unset.
Sourcepub fn source_path_iid(&self) -> u64
pub fn source_path_iid(&self) -> u64
Returns the value of source_path_iid, or the default value if source_path_iid is unset.
Sourcepub fn line_number(&self) -> u32
pub fn line_number(&self) -> u32
Returns the value of line_number, or the default value if line_number is unset.
Trait Implementations§
Source§impl Message for Frame
impl Message for Frame
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.