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

Function removeConfig

internal/driver/settings.go:148–158  ·  view source on GitHub ↗

removeConfig removes config from fname.

(fname, config string)

Source from the content-addressed store, hash-verified

146
147// removeConfig removes config from fname.
148func removeConfig(fname, config string) error {
149 return editSettings(fname, func(s *settings) error {
150 for i, c := range s.Configs {
151 if c.Name == config {
152 s.Configs = append(s.Configs[:i], s.Configs[i+1:]...)
153 return nil
154 }
155 }
156 return fmt.Errorf("config %s not found", config)
157 })
158}

Callers 2

TestEditConfigFunction · 0.85
deleteConfigMethod · 0.85

Calls 1

editSettingsFunction · 0.85

Tested by 1

TestEditConfigFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…