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

Function completeConfig

internal/driver/config.go:284–292  ·  view source on GitHub ↗

completeConfig returns the list of configurable names starting with prefix.

(prefix string)

Source from the content-addressed store, hash-verified

282
283// completeConfig returns the list of configurable names starting with prefix.
284func completeConfig(prefix string) []string {
285 var result []string
286 for v := range configFieldMap {
287 if strings.HasPrefix(v, prefix) {
288 result = append(result, v)
289 }
290 }
291 return result
292}
293
294// configure stores the name=value mapping into the current config, correctly
295// handling the case when name identifies a particular choice in a field.

Callers 1

matchVariableOrCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…