Struct BuildMeter

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 hash and its entry’s max_life &#8212; 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 human label, kept from the first sighting for the dump).

Public Static Attributes

static Reporter reporter_ = {}
struct Reporter

Public Functions

inline ~Reporter()