pub struct Sample<'a> {
pub locations: Vec<Location<'a>>,
pub values: &'a [i64],
pub labels: Vec<Label<'a>>,
}Fields§
§locations: Vec<Location<'a>>The leaf is at locations[0].
values: &'a [i64]The type and unit of each value is defined by the corresponding entry in Profile.sample_type. All samples must have the same number of values, the same as the length of Profile.sample_type. When aggregating multiple samples into a single sample, the result has a list of values that is the element-wise sum of the lists of the originals.
labels: Vec<Label<'a>>label includes additional context for this sample. It can include things like a thread id, allocation size, etc
Trait Implementations§
impl<'a> Eq for Sample<'a>
impl<'a> StructuralPartialEq for Sample<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sample<'a>
impl<'a> RefUnwindSafe for Sample<'a>
impl<'a> Send for Sample<'a>
impl<'a> Sync for Sample<'a>
impl<'a> Unpin for Sample<'a>
impl<'a> UnwindSafe for Sample<'a>
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> 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.