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

Function sampleIndex

internal/driver/cli.go:267–275  ·  view source on GitHub ↗
(flag *bool, si string, sampleType, option string, ui plugin.UI)

Source from the content-addressed store, hash-verified

265}
266
267func sampleIndex(flag *bool, si string, sampleType, option string, ui plugin.UI) string {
268 if *flag {
269 if si == "" {
270 return sampleType
271 }
272 ui.PrintErr("Multiple value selections, ignoring ", option)
273 }
274 return si
275}
276
277func outputFormat(bcmd map[string]*bool, acmd map[string]*string) (cmd []string, err error) {
278 for n, b := range bcmd {

Callers 1

parseFlagsFunction · 0.85

Calls 1

PrintErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…