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

Function dropEmpty

internal/driver/cli.go:189–197  ·  view source on GitHub ↗

dropEmpty list takes a slice of string pointers, and outputs a slice of non-empty strings associated with the flag.

(list []*string)

Source from the content-addressed store, hash-verified

187// dropEmpty list takes a slice of string pointers, and outputs a slice of
188// non-empty strings associated with the flag.
189func dropEmpty(list []*string) []string {
190 var l []string
191 for _, s := range list {
192 if *s != "" {
193 l = append(l, *s)
194 }
195 }
196 return l
197}
198
199// installConfigFlags creates command line flags for configuration
200// fields and returns a function which can be called after flags have

Callers 1

addBaseProfilesMethod · 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…