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

Function labelsToString

profile/profile.go:685–692  ·  view source on GitHub ↗

labelsToString returns a string representation of a map representing labels.

(labels map[string][]string)

Source from the content-addressed store, hash-verified

683// labelsToString returns a string representation of a
684// map representing labels.
685func labelsToString(labels map[string][]string) string {
686 ls := []string{}
687 for k, v := range labels {
688 ls = append(ls, fmt.Sprintf("%s:%v", k, v))
689 }
690 sort.Strings(ls)
691 return strings.Join(ls, " ")
692}
693
694// numLabelsToString returns a string representation of a map
695// representing numeric labels.

Callers 1

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