class
Circed::Performance::Metrics
- Circed::Performance::Metrics
- Reference
- Object
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
- .decrement_server_connections
- .decrement_user_connections
- .increment_channel_operations
-
.increment_messages(count : UInt64 = 1_u64)
Increment message counter atomically
- .increment_server_connections
- .increment_user_connections
-
.optimization_suggestions : Array(String)
Suggest optimizations based on current metrics
-
.performance_warning? : Bool
Check if performance is degraded
-
.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(&)