class
CQL::Performance::StatsTracker
- CQL::Performance::StatsTracker
- Reference
- Object
Overview
Statistics tracking
Defined in:
performance/utilities.crInstance Method Summary
- #avg_time : Time::Span
- #error_rate : Float64
- #errors : Int64
- #errors=(errors : Int64)
- #max_time : Time::Span
- #max_time=(max_time : Time::Span)
- #min_time : Time::Span
- #min_time=(min_time : Time::Span)
-
#percentile(q : Float64) : Time::Span
Estimated q quantile of the recorded durations; zero when none are recorded.
-
#percentiles : LatencyPercentiles
p50, p95 and p99 read under one lock, so all three describe the same samples.
- #record(duration : Time::Span, error : Bool = false)
- #reset
- #to_h : Hash(String, String | Int64 | Float64)
- #total_count : Int64
- #total_count=(total_count : Int64)
- #total_time : Time::Span
- #total_time=(total_time : Time::Span)
Instance Method Detail
def percentile(q : Float64) : Time::Span
#
Estimated q quantile of the recorded durations; zero when none are recorded. Raises ArgumentError outside 0.0..1.0.
def percentiles : LatencyPercentiles
#
p50, p95 and p99 read under one lock, so all three describe the same samples.