pub struct AccessCounters {
pub query_count: AtomicU64,
pub rows_scanned: AtomicU64,
}Expand description
Online access-pattern counters for one component type.
Updated once per query (off the per-element hot path), read by the DCC /
telemetry to decide whether a memory-layout repack would pay off. Atomics so
they can be recorded through &self. One small entry per component type
(not per entity): the memory cost is constant, not proportional to the world.
Fields§
§query_count: AtomicU64Number of queries that touched this component.
rows_scanned: AtomicU64Cumulative rows visited across those queries.
Trait Implementations§
Source§impl Debug for AccessCounters
impl Debug for AccessCounters
Source§impl Default for AccessCounters
impl Default for AccessCounters
Source§fn default() -> AccessCounters
fn default() -> AccessCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for AccessCounters
impl RefUnwindSafe for AccessCounters
impl Send for AccessCounters
impl Sync for AccessCounters
impl Unpin for AccessCounters
impl UnsafeUnpin for AccessCounters
impl UnwindSafe for AccessCounters
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