chronon::CategoryRegistry
Global registry that auto-assigns bit positions for user trace categories. More...
#include <ObserveApi.hpp>
Public Classes
| Name | |
|---|---|
| struct | CategoryEntry |
Public Functions
| Name | |
|---|---|
| CategoryMask | registerCategory(std::string_view name, std::string_view description) |
| std::string_view | nameForBit(uint32_t bit) |
| CategoryRegistry & | instance() |
| const std::vector< CategoryEntry > & | entries() const |
Detailed Description
class chronon::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 nameForBit
inline std::string_view nameForBit(
uint32_t bit
)
Thread-safe lookup of a category name by its assigned bit position. Returned views reference the categories' static string literals.
function instance
static inline CategoryRegistry & instance()
function entries
inline const std::vector< CategoryEntry > & entries() const
Updated on 2026-07-06 at 09:03:34 +0000