kubernetes/vendor/golang.org/x/net/trace/histogram.go

const bucketCount

type histogram

// addMeasurement records a value measurement observation to the histogram.
func (h *histogram) addMeasurement(value int64) {}

func (h *histogram) allocateBuckets() {}

func log2(i int64) int {}

func getBucket(i int64) (index int) {}

// Total returns the number of recorded observations.
func (h *histogram) total() (total int64) {}

// Average returns the average value of recorded observations.
func (h *histogram) average() float64 {}

// Variance returns the variance of recorded observations.
func (h *histogram) variance() float64 {}

// StandardDeviation returns the standard deviation of recorded observations.
func (h *histogram) standardDeviation() float64 {}

// PercentileBoundary estimates the value that the given fraction of recorded
// observations are less than.
func (h *histogram) percentileBoundary(percentile float64) int64 {}

// Median returns the estimated median of the observed values.
func (h *histogram) median() int64 {}

// Add adds other to h.
func (h *histogram) Add(other timeseries.Observable) {}

// Clear resets the histogram to an empty state, removing all observed values.
func (h *histogram) Clear() {}

// CopyFrom copies from other, which must be a *histogram, into h.
func (h *histogram) CopyFrom(other timeseries.Observable) {}

// Multiply scales the histogram by the specified ratio.
func (h *histogram) Multiply(ratio float64) {}

// New creates a new histogram.
func (h *histogram) New() timeseries.Observable {}

func (h *histogram) String() string {}

// round returns the closest int64 to the argument
func round(in float64) int64 {}

// bucketBoundary returns the first value in the bucket.
func bucketBoundary(bucket uint8) int64 {}

type bucketData

type data

const maxHTMLBarWidth

// newData returns data representing h for use in distTmpl.
func (h *histogram) newData() *data {}

func (h *histogram) html() template.HTML {}

var distTmplCache

var distTmplOnce

func distTmpl() *template.Template {}