Skip to main content

chronon::observe::CounterRegistry

#include <CounterRegistry.hpp>

Public Classes

Name
structCounterKeyHash
structCounterKey

Public Functions

Name
voidreregisterAll(const std::vector< std::unique_ptr< ObservationContext > > & contexts)
voidregisterCounter(const std::string & unit_name, CounterId id, SimpleCounter * counter_ptr, const std::string & counter_name ="")
voiddumpSnapshots(uint64_t cycle, ObservationQueue * queue, const std::vector< std::unique_ptr< ObservationContext > > & contexts)
const std::vector< DerivedCounterDef > &derivedDefs() const
voidclear()

Public Functions Documentation

function reregisterAll

void reregisterAll(
const std::vector< std::unique_ptr< ObservationContext > > & contexts
)

function registerCounter

inline void registerCounter(
const std::string & unit_name,
CounterId id,
SimpleCounter * counter_ptr,
const std::string & counter_name =""
)

function dumpSnapshots

void dumpSnapshots(
uint64_t cycle,
ObservationQueue * queue,
const std::vector< std::unique_ptr< ObservationContext > > & contexts
)

function derivedDefs

inline const std::vector< DerivedCounterDef > & derivedDefs() const

function clear

inline void clear()

Updated on 2026-05-27 at 08:42:21 +0000