Histogram

interface Histogram<T : Number>

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun record(value: T, attributes: Attributes = emptyAttributes(), context: Context? = null)

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.