Struct LookupMeter¶
Defined in File cache_manager.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
struct LookupMeter¶
diagnostic (analysis-only, off by default): counts and times every
cache_map_.find(key)performed by CacheManager. Each such find runs TreeNodeEqualityComparator on any bucket match — a recursive structural compare of the whole subtree (memoized-hash O(1) per nodelinear bliss ConstGraphCmp on the connectivity graph, recursed into left/right). This meter isolates the aggregate wall time that lookup costs, so a schedule that issues more read-from-home lookups (ordered) can be compared against one that inlines (forest). Env gate SEQUANT_UT_LOOKUP_METER; when unset every site is a no-op passthrough and the eval path is left untouched. Single-threaded runs only.
Public Static Functions
-
static inline bool enabled() noexcept¶
-
static inline std::size_t &calls() noexcept¶
-
static inline std::uint64_t &nanos() noexcept¶
-
template<typename F>
static inline auto timed(F &&f)¶ Time only the find() call in
f(a nullary functor returning the iterator); accumulate count + elapsed ns; return f()’s result. Works for const and non-const maps alike (return type is deduced).
-
static inline void reset() noexcept¶