Skip to main content

chronon::observe::CategoryRegistry

Global registry that auto-assigns bit positions for user trace categories. More...

#include <ObserveApi.hpp>

Public Classes

Name
structCategoryEntry

Public Functions

Name
CategoryMaskregisterCategory(std::string_view name, std::string_view description)
CategoryRegistry &instance()
const std::vector< CategoryEntry > &entries() const

Detailed Description

class chronon::observe::CategoryRegistry;

Global registry that auto-assigns bit positions for user trace categories.

User categories start at bit USER_CATEGORY_START (8); bits 0-7 are reserved.

Public Functions Documentation

function registerCategory

inline CategoryMask registerCategory(
std::string_view name,
std::string_view description
)

function instance

static inline CategoryRegistry & instance()

function entries

inline const std::vector< CategoryEntry > & entries() const

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