snapshot

open override fun snapshot(): ChannelTrafficSnapshot

Captures a snapshot of the traffic in this channel since the last reset (or when it began measuring, if it has never been reset). This function will not synchronize or reset any of the metrics.

Return

a snapshot of the channel's traffic since the last reset, or when it first began measuring.