class

Filament::Stats::LatencyAnalyzer

Inherits Reference < Object

Constants

BUCKET_BOUNDS = [1.0, 5.0, 10.0, 25.0, 50.0, 100.0, 250.0, 500.0, 1000.0]

Histogram buckets: bounds in milliseconds

Constructors

Instance methods

dns_queries
Source
histogram_counts

Generates a binned histogram distribution of latencies

Source
max_ms
Source
mean_ms
Source
min_ms
Source
percentile(pct : Float64) : Float64

Computes percentile latency (p0 to p100)

Source
process(packet : Dissect::DecodedPacket) : Nil

Ingests a decoded packet to measure DNS resolution and handshake latencies

Source
record_sample(label : String, duration_ms : Float64, timestamp : Time) : Nil

Adds an explicit sample (e.g. from TCP handshake RTT)

Source
samples
Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source