Documentation
¶
Index ¶
- type Histogram
- func (h *Histogram) Add(v int)
- func (h *Histogram) AddError(v int)
- func (h *Histogram) Average() float64
- func (h *Histogram) End(t int)
- func (h *Histogram) ErrorPercent() float64
- func (h *Histogram) Percentiles(percentiles ...float64) []int
- func (h *Histogram) Start(t int)
- func (h *Histogram) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram defines a histogram.
func NewHistogram ¶
NewHistogram creates a new Histogram.
func (*Histogram) ErrorPercent ¶
ErrorPercent returns the hisogram's error percentage.
func (*Histogram) Percentiles ¶
Percentiles produces the values for the given percentiles.
Click to show internal directories.
Click to hide internal directories.