#[repr(C)]pub struct Observation {
pub instance_id: u32,
pub op_kind: u16,
pub flags: u16,
pub latency_ticks: u64,
pub producer_thread_id: u32,
pub _reserved: u32,
}Expand description
One observation record. 24 bytes - fits between two consecutive cache-line boundaries (3 per line, no straddling). The width carries a per-thread sequential identifier alongside the op data.
Fields§
§instance_id: u32Stable identifier for the originating primitive instance.
op_kind: u16Op kind (primitive-specific).
flags: u16Bit flags (contention, miss, cold path, etc.).
latency_ticks: u64Latency in raw TSC ticks.
producer_thread_id: u32Process-local sequential thread id of the producer
(returned by thread_id). 0 = unspecified.
_reserved: u32Reserved for future-proofing the struct size to a multiple of 8 bytes; keeps Observation at 24 bytes (3 per cache line).
Implementations§
Source§impl Observation
impl Observation
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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