Struct wasmer_compiler::engine::trap::frame_info::GlobalFrameInfo
source · pub struct GlobalFrameInfo {
ranges: BTreeMap<usize, ModuleInfoFrameInfo>,
}
Fields§
§ranges: BTreeMap<usize, ModuleInfoFrameInfo>
An internal map that keeps track of backtrace frame information for each module.
This map is morally a map of ranges to a map of information for that module. Each module is expected to reside in a disjoint section of contiguous memory. No modules can overlap.
The key of this map is the highest address in the module and the value is the module’s information, which also contains the start address.
Implementations§
source§impl GlobalFrameInfo
impl GlobalFrameInfo
sourcepub fn lookup_frame_info(&self, pc: usize) -> Option<FrameInfo>
pub fn lookup_frame_info(&self, pc: usize) -> Option<FrameInfo>
Fetches frame information about a program counter in a backtrace.
Returns an object if this pc
is known to some previously registered
module, or returns None
if no information can be found.
sourcepub fn lookup_trap_info(&self, pc: usize) -> Option<TrapInformation>
pub fn lookup_trap_info(&self, pc: usize) -> Option<TrapInformation>
Fetches trap information about a program counter in a backtrace.
sourcefn module_info(&self, pc: usize) -> Option<&ModuleInfoFrameInfo>
fn module_info(&self, pc: usize) -> Option<&ModuleInfoFrameInfo>
Gets a module given a pc
Trait Implementations§
source§impl Default for GlobalFrameInfo
impl Default for GlobalFrameInfo
source§fn default() -> GlobalFrameInfo
fn default() -> GlobalFrameInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlobalFrameInfo
impl RefUnwindSafe for GlobalFrameInfo
impl Send for GlobalFrameInfo
impl Sync for GlobalFrameInfo
impl Unpin for GlobalFrameInfo
impl UnwindSafe for GlobalFrameInfo
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointee for T
impl<T> Pointee for T
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref