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

Function joinLabels

internal/graph/graph.go:539–552  ·  view source on GitHub ↗
(s *profile.Sample)

Source from the content-addressed store, hash-verified

537}
538
539func joinLabels(s *profile.Sample) string {
540 if len(s.Label) == 0 {
541 return ""
542 }
543
544 var labels []string
545 for key, vals := range s.Label {
546 for _, v := range vals {
547 labels = append(labels, key+":"+v)
548 }
549 }
550 sort.Strings(labels)
551 return strings.Join(labels, `\n`)
552}
553
554// isNegative returns true if the node is considered as "negative" for the
555// purposes of drop_negative.

Callers 2

newGraphFunction · 0.85
newTreeFunction · 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…