pub struct NativeLookup { /* private fields */ }Expand description
One exact native lookup selected by StackPulse.
Implementations§
Source§impl NativeLookup
impl NativeLookup
Sourcepub fn new(
process_id: Pid,
module: NativeModule,
absolute_address: u64,
relative_address: u64,
image_address: u64,
) -> Self
pub fn new( process_id: Pid, module: NativeModule, absolute_address: u64, relative_address: u64, image_address: u64, ) -> Self
Construct one request for testing a custom native symbolizer.
The addresses have the same meanings as their accessors. StackPulse computes them for recorded frames; fixture authors are responsible for keeping them consistent with the synthetic module.
Sourcepub fn process_id(&self) -> Pid
pub fn process_id(&self) -> Pid
Return the process that owns the mapping.
Sourcepub fn module(&self) -> &NativeModule
pub fn module(&self) -> &NativeModule
Return the exact module selected for this address.
Sourcepub fn absolute_address(&self) -> u64
pub fn absolute_address(&self) -> u64
Return the sampled process-absolute address.
Sourcepub fn relative_address(&self) -> u64
pub fn relative_address(&self) -> u64
Return the address relative to the image base.
Sourcepub fn image_address(&self) -> u64
pub fn image_address(&self) -> u64
Return the static virtual address used for debug lookup.
Sourcepub fn file_identity(&self) -> NativeFileIdentity
pub fn file_identity(&self) -> NativeFileIdentity
Return the image identity selected for this lookup.
Sourcepub fn mapping_id(&self) -> u32
pub fn mapping_id(&self) -> u32
Return the spool-local mapping generation identifier.
Sourcepub fn image_id(&self) -> NativeImageId
pub fn image_id(&self) -> NativeImageId
Return the exact image identity selected by StackPulse.
Trait Implementations§
Source§impl Clone for NativeLookup
impl Clone for NativeLookup
Source§fn clone(&self) -> NativeLookup
fn clone(&self) -> NativeLookup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for NativeLookup
impl !Sync for NativeLookup
impl Freeze for NativeLookup
impl RefUnwindSafe for NativeLookup
impl Unpin for NativeLookup
impl UnsafeUnpin for NativeLookup
impl UnwindSafe for NativeLookup
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