AbstractHistogram

abstract class AbstractHistogram<T : Number> : Histogram<T>

An abstract implementation of a histogram. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun record(value: T, attributes: Attributes, context: Context?)

Updates the statistics with a value

Inherited functions

Link copied to clipboard
inline fun <T> DoubleHistogram.measureSeconds(attributes: Attributes = emptyAttributes(), context: Context? = null, block: () -> T): T

Measure how long block takes to execute and record the duration in seconds using millisecond precision.