MCPcopy Create free account
hub / github.com/efficientgo/e2e / WithScrapeInterval

Function WithScrapeInterval

profiling/profiling.go:179–183  ·  view source on GitHub ↗

WithScrapeInterval changes how often profiles are collected by Parca. 5s by default.

(interval time.Duration)

Source from the content-addressed store, hash-verified

177
178// WithScrapeInterval changes how often profiles are collected by Parca. 5s by default.
179func WithScrapeInterval(interval time.Duration) func(*opt) {
180 return func(o *opt) {
181 o.scrapeInterval = interval
182 }
183}
184
185// WithParcaImage allows injecting custom Parca docker image to use as scraper and queryable.
186func WithParcaImage(image string) func(*opt) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…