Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MessageCounter measures number of messages. MessageCounter = "Messages" // SampleCounter measures number of samples. SampleCounter = "Samples" // LatencyCounter measures latency between processing calls. LatencyCounter = "Latency" // DurationCounter counts what's the duration of signal. DurationCounter = "Duration" // ComponentCounter counts number of calls. ComponentCounter = "Components" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MeasureFunc ¶ added in v0.5.0
type MeasureFunc func(bufferSize int)
MeasureFunc captures metrics when buffer is processed.
type ResetFunc ¶ added in v0.5.0
type ResetFunc func() MeasureFunc
ResetFunc returns new Measure closure. This closure is needed to postpone metrics capture until component is actually running.
func Meter ¶
func Meter(component interface{}, sampleRate signal.SampleRate) ResetFunc
Meter creates new meter closure to capture component counters.
Click to show internal directories.
Click to hide internal directories.