pub struct Location {
pub mapping_id: Option<MappingId>,
pub function_id: FunctionId,
pub address: u64,
pub line: i64,
}Expand description
Represents a [pprof::Location] 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.
- in libdatadog, we always use 1 Line per Location, so this is directly inlined into the struct.
Fields§
§mapping_id: Option<MappingId>§function_id: FunctionId§address: u64§line: i64Trait Implementations§
Source§impl Item for Location
impl Item for Location
Source§type Id = LocationId
type Id = LocationId
The Id associated with this Item, e.g. Function -> FunctionId.
Source§impl Ord for Location
impl Ord for Location
Source§impl PartialOrd for Location
impl PartialOrd for Location
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.