MCPcopy
hub / github.com/tsenart/vegeta / Downsample

Function Downsample

lib/plot/plot.go:122–124  ·  view source on GitHub ↗

Downsample returns an Opt that enables downsampling to the given threshold number of data points per labeled series.

(threshold int)

Source from the content-addressed store, hash-verified

120// Downsample returns an Opt that enables downsampling
121// to the given threshold number of data points per labeled series.
122func Downsample(threshold int) Opt {
123 return func(p *Plot) { p.threshold = threshold }
124}
125
126// Label returns an Opt that sets the given Labeler
127// to be used to partition results into multiple overlaid line charts.

Callers 3

plotRunFunction · 0.92
TestPlotFunction · 0.70
BenchmarkPlotFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestPlotFunction · 0.56
BenchmarkPlotFunction · 0.56