pub struct Observation {
pub source: Source,
pub label: u32,
}Expand description
One source’s report of a relation, carrying that source’s own label for it.
§Why the label lives here and not on the relation
D-15 identifies a relation by (kind, membership),
because that is what the sources agree about. What they do not agree
about is naming: measured on the development host, the two report the same
eight-group core partition while labelling it [0, 2, 4, ..., 14] and
[0, 1, ..., 7]. Neither numbering is wrong and neither is a claim about
the machine, so a single id on the relation would have to pick one
arbitrarily and discard the other.
Putting the label on the observation removes the choice: one relation, two observations, each keeping what its source called it.
Fields§
§source: SourceWhich API reported this relation.
label: u32What that source called it.
A NUMA node number, a processor group number, a CPU-set CoreIndex, or
– where the source numbers nothing – the position it was reported in.
Meaningful only alongside Self::source, never on its own.
Implementations§
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more