Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Debug is the sub-command invoked when calling "dgraph debug" Debug x.SubCommand )
Functions ¶
This section is empty.
Types ¶
type HistogramData ¶
type HistogramData struct {
Bounds []float64
Count int64
CountPerBucket []int64
Min int64
Max int64
Sum int64
}
HistogramData stores the information needed to represent the sizes of the keys and values as a histogram.
func NewHistogramData ¶
func NewHistogramData(bounds []float64) *HistogramData
NewHistogramData returns a new instance of HistogramData with properly initialized fields.
func (*HistogramData) PrintHistogram ¶
func (histogram *HistogramData) PrintHistogram()
PrintHistogram prints the histogram data in a human-readable format.
func (*HistogramData) Update ¶
func (histogram *HistogramData) Update(value int64)
Update changes the Min and Max fields if value is less than or greater than the current values.
Click to show internal directories.
Click to hide internal directories.