Struct BuildMeter¶
Defined in File cache_manager.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
struct BuildMeter¶
Public Static Functions
-
static inline bool enabled() noexcept¶
-
static inline std::unordered_map<std::size_t, std::size_t> &build_count() noexcept¶
-
static inline std::size_t &total() noexcept¶
-
static inline std::unordered_map<std::size_t, std::string> &label_of() noexcept¶
-
static inline std::unordered_map<std::size_t, std::size_t> &read_count() noexcept¶
-
static inline std::unordered_map<std::size_t, std::size_t> &max_life_of() noexcept¶
-
static inline void on_read(std::size_t hash, std::size_t max_life) noexcept¶
Record one genuine cache read (access_at hit) of
hashand its entry’smax_life— ground truth for “is the lifetime >= the real read count?”.
-
static inline void on_build(std::size_t hash, std::string label = std::string{}) noexcept¶
Record one fresh build of the non-leaf node
hash(optional humanlabel, kept from the first sighting for the dump).
-
static inline bool enabled() noexcept¶