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

Function editSettings

internal/driver/settings.go:113–122  ·  view source on GitHub ↗

editSettings edits settings by applying fn to them.

(fname string, fn func(s *settings) error)

Source from the content-addressed store, hash-verified

111
112// editSettings edits settings by applying fn to them.
113func editSettings(fname string, fn func(s *settings) error) error {
114 settings, err := readSettings(fname)
115 if err != nil {
116 return err
117 }
118 if err := fn(settings); err != nil {
119 return err
120 }
121 return writeSettings(fname, settings)
122}
123
124// setConfig saves the config specified in request to fname.
125func setConfig(fname string, request url.URL) error {

Callers 2

setConfigFunction · 0.85
removeConfigFunction · 0.85

Calls 2

readSettingsFunction · 0.85
writeSettingsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…