pub struct Sample {
pub tid: u64,
pub ts_us: f64,
pub dur_us: f64,
pub values: BTreeMap<String, f64>,
}Expand description
A time-keyed sample to be joined: an instantaneous (dur_us == 0) or
interval reading on a known thread. values are the quantities to
apportion (counts for an interval; a single tier-hit = 1.0 for a PEBS mem
sample modeled as a unit count under its tier name).
Fields§
§tid: u64§ts_us: f64§dur_us: f64Interval width; 0 for an instant.
values: BTreeMap<String, f64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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