Documentation ¶
Overview ¶
Package histogram provides a Histogram struct that represents a histogram of the number of events that occurred in each interval. It also provides a way to transform a Histogram struct into a graphical representation. In addition, it allows to create a Histogram struct from an exp-2 histogram.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram struct { Unit Unit `json:"unit,omitempty"` Intervals []Interval `json:"intervals,omitempty"` }
Histogram represents a histogram of the number of events that occurred in each interval.
func (*Histogram) String ¶
String returns a string representation of the histogram. It is a golang adaption of iovisor/bcc print_log2_hist(): https://github.com/iovisor/bcc/blob/13b5563c11f7722a61a17c6ca0a1a387d2fa7788/libbpf-tools/trace_helpers.c#L895-L932
Click to show internal directories.
Click to hide internal directories.