mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
19 lines
359 B
Go
19 lines
359 B
Go
package metrics
|
|
|
|
// Histograms calculate distribution statistics from a series of int64 values.
|
|
type Histogram interface {
|
|
Clear()
|
|
Count() int64
|
|
Max() int64
|
|
Mean() float64
|
|
Min() int64
|
|
Percentile(float64) float64
|
|
Percentiles([]float64) []float64
|
|
Sample() Sample
|
|
Snapshot() Histogram
|
|
StdDev() float64
|
|
Sum() int64
|
|
Update(int64)
|
|
Variance() float64
|
|
}
|