Enum CacheId Copy item path Source #[repr(u8)]
pub enum CacheId {
AutorouteDecision = 0,
AutorouteCalibration = 1,
IncrementalUnchanged = 2,
MatcherArtifact = 3,
VerifierResult = 4,
}Expand description A reuse cache the profiler reports hit and miss counts for.
Every KeyHog cache that exists to avoid repeating work reports through this
one enum, so “what is our cache hit rate” has a single answer instead of one
per subsystem. Record every consultation with exactly one of
crate::record_cache_hit or crate::record_cache_miss , so the reported
rate has a real denominator.
Counters are indexed by CacheId::index into a fixed array of length
CacheId::COUNT , so recording is one relaxed atomic add with no
allocation and no lookup on the hot path.
Persisted autoroute backend decision reused instead of re-deciding.
A miss means the scan runs without a calibrated route.
Autoroute calibration measurement reused instead of re-measuring.
Chunk skipped because the incremental scan judged it unchanged.
Compiled matcher artifact reused instead of recompiled. This is the
cache standing between a scan and the engine-initialization cost.
Credential verification result reused instead of re-requested. A miss
costs a network round trip, so this rate is also a rate-limit story.
Every cache slot in stable wire order.
Number of variants, and the length of the profiler’s counter arrays.
Dense index into the profiler’s per-shard counter arrays.
Stable text label used by profiles and operator reports.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.