pub struct Mapping {
pub memory_start: u64,
pub memory_limit: u64,
pub file_offset: u64,
pub filename: StringId,
pub build_id: StringId,
}Expand description
Represents a [pprof::Mapping] with some space-saving changes:
- The id is not stored on the struct. It’s stored in the container that holds the struct.
- ids for linked objects use 32-bit numbers instead of 64 bit ones.
Fields§
§memory_start: u64Address at which the binary (or DLL) is loaded into memory.
memory_limit: u64The limit of the address range occupied by this mapping.
file_offset: u64Offset in the binary that corresponds to the first mapped address.
filename: StringIdThe object this entry is loaded from. This can be a filename on disk for the main binary and shared libraries, or virtual abstractions like “[vdso]”.
build_id: StringIdA string that uniquely identifies a particular program version with high probability. E.g., for binaries generated by GNU tools, it could be the contents of the .note.gnu.build-id field.
Trait Implementations§
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.