Documentation ¶
Overview ¶
Package throttling wraps connections to measure throttling.
Index ¶
Constants ¶
View Source
const BytesReceivedCumulativeOperation = "bytes_received_cumulative"
BytesReceivedCumulativeOperation is the operation we set for network events.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
Sampler periodically samples the bytes sent and received by a *measurexlite.Trace. The zero value of this structure is invalid; please, construct using NewSampler.
func NewSampler ¶
func NewSampler(tx *measurexlite.Trace) *Sampler
NewSampler attaches a *Sampler to a *measurexlite.Trace, starts sampling in the background and returns the *Sampler. Remember to call *Sampler.Close to stop the background goroutine that performs the sampling.
func (*Sampler) ExtractSamples ¶
func (smpl *Sampler) ExtractSamples() []*model.ArchivalNetworkEvent
ExtractSamples extracts the samples from the *Sampler
Click to show internal directories.
Click to hide internal directories.