MCPcopy Create free account
hub / github.com/google/pprof / resetTransient

Method resetTransient

internal/driver/config.go:316–323  ·  view source on GitHub ↗

resetTransient sets all transient fields in *cfg to their currently configured values.

()

Source from the content-addressed store, hash-verified

314// resetTransient sets all transient fields in *cfg to their currently
315// configured values.
316func (cfg *config) resetTransient() {
317 current := currentConfig()
318 cfg.Output = current.Output
319 cfg.SourcePath = current.SourcePath
320 cfg.TrimPath = current.TrimPath
321 cfg.DivideBy = current.DivideBy
322 cfg.SampleIndex = current.SampleIndex
323}
324
325// applyURL updates *cfg based on params.
326func (cfg *config) applyURL(params url.Values) error {

Callers 2

TestSettingsFunction · 0.80
readSettingsFunction · 0.80

Calls 1

currentConfigFunction · 0.85

Tested by 1

TestSettingsFunction · 0.64