module
Circed::Performance::Metrics
Overview
Performance monitoring and metrics collection Designed to be lightweight and non-intrusive
Defined in:
circed/performance/metrics.crConstant Summary
-
MAX_BURST_TIME =
5.seconds -
Performance thresholds
-
MAX_MESSAGE_TIME =
100.milliseconds -
MAX_NETSPLIT_TIME =
10.seconds
Class Method Summary
- .command_counts : Hash(String, UInt64)
- .increment_channel_operations
- .increment_command(command : String)
-
.increment_messages(count : UInt64 = 1_u64)
Increment message counter atomically
-
.reset
Reset all counters (for testing or periodic cleanup)
-
.snapshot
Get current metrics snapshot
-
.time_burst(&)
Time a block execution and categorize by operation type
- .time_message_processing(&)
- .time_netsplit(&)