Skip to main content

chronon::observe::ObservationStats

Aggregated per-unit observation statistics. More...

#include <Types.hpp>

Public Functions

Name
uint64_ttotalEmitted() const
uint64_ttotalDropped() const
template <ObservationChannel Ch>
void
recordEmit()
template <ObservationChannel Ch>
void
recordDrop()
template <ObservationChannel Ch>
const ObservationChannelStats &
get() const
const ObservationChannelStats &get(ObservationChannel ch) const
const char *channelName(ObservationChannel ch)

Public Attributes

Name
std::array< ObservationChannelStats, static_cast< size_t >(ObservationChannel::NumChannels)>channels

Detailed Description

struct chronon::observe::ObservationStats;

Aggregated per-unit observation statistics.

Operations are plain uint64_t increments (~0.3ns), not atomic — the owning unit is single-threaded.

Public Functions Documentation

function totalEmitted

inline uint64_t totalEmitted() const

function totalDropped

inline uint64_t totalDropped() const

function recordEmit

template <ObservationChannel Ch>
inline void recordEmit()

function recordDrop

template <ObservationChannel Ch>
inline void recordDrop()

function get

template <ObservationChannel Ch>
inline const ObservationChannelStats & get() const

function get

inline const ObservationChannelStats & get(
ObservationChannel ch
) const

function channelName

static inline const char * channelName(
ObservationChannel ch
)

Public Attributes Documentation

variable channels

std::array< ObservationChannelStats, static_cast< size_t >(ObservationChannel::NumChannels)> channels {};

Updated on 2026-05-26 at 05:42:32 +0000