chronon::observe::CategoryPattern
Glob pattern selecting categories, with optional temporal and per-channel format overrides. More...
#include <ObservationYAMLConfig.hpp>
Public Functions
| Name | |
|---|---|
| bool | matchesCycle(uint64_t cycle) const OR semantics across filters; empty filters list means "always active". |
| std::optional< OutputFormat > | getEffectiveFormat(const std::optional< OutputFormat > & channel_override) const Channel-specific override wins over the shorthand format. |
Public Attributes
| Name | |
|---|---|
| std::optional< OutputFormat > | warn_format |
| std::optional< OutputFormat > | trace_format |
| std::vector< TemporalFilter > | temporal |
| std::string | pattern |
| std::optional< OutputFormat > | info_format |
| std::optional< OutputFormat > | format Shorthand: sets all channels when no channel-specific override is set. |
| std::optional< OutputFormat > | error_format |
| bool | enabled |
| std::optional< OutputFormat > | debug_format |
Detailed Description
struct chronon::observe::CategoryPattern;
Glob pattern selecting categories, with optional temporal and per-channel format overrides.
Patterns support * ("" matches all, "icache_" matches prefixes, etc.). Format priority: channel-specific override > shorthand format > channel default.
Public Functions Documentation
function matchesCycle
inline bool matchesCycle(
uint64_t cycle
) const
OR semantics across filters; empty filters list means "always active".
function getEffectiveFormat
inline std::optional< OutputFormat > getEffectiveFormat(
const std::optional< OutputFormat > & channel_override
) const
Channel-specific override wins over the shorthand format.
Public Attributes Documentation
variable warn_format
std::optional< OutputFormat > warn_format;
variable trace_format
std::optional< OutputFormat > trace_format;
variable temporal
std::vector< TemporalFilter > temporal;
variable pattern
std::string pattern;
variable info_format
std::optional< OutputFormat > info_format;
variable format
std::optional< OutputFormat > format;
Shorthand: sets all channels when no channel-specific override is set.
variable error_format
std::optional< OutputFormat > error_format;
variable enabled
bool enabled = true;
variable debug_format
std::optional< OutputFormat > debug_format;
Updated on 2026-05-26 at 05:42:32 +0000