module

Circed::Performance::Metrics

Performance monitoring and metrics collection Designed to be lightweight and non-intrusive

Constants

MAX_BURST_TIME = 5.seconds

Performance thresholds

MAX_MESSAGE_TIME = 100.milliseconds
MAX_NETSPLIT_TIME = 10.seconds

Class methods

command_counts
Source
increment_channel_operations
Source
increment_command(command : String)
Source
increment_messages(count : UInt64 = 1_u64)

Increment message counter atomically

Source
reset

Reset all counters (for testing or periodic cleanup)

Source
snapshot

Get current metrics snapshot

Source
time_burst

Time a block execution and categorize by operation type

Source
time_message_processing
Source
time_netsplit
Source