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

Method findOrAddTag

internal/graph/graph.go:712–723  ·  view source on GitHub ↗
(label, unit string, value int64)

Source from the content-addressed store, hash-verified

710}
711
712func (m TagMap) findOrAddTag(label, unit string, value int64) *Tag {
713 l := m[label]
714 if l == nil {
715 l = &Tag{
716 Name: label,
717 Unit: unit,
718 Value: value,
719 }
720 m[label] = l
721 }
722 return l
723}
724
725// String returns a text representation of a graph, for debugging purposes.
726func (g *Graph) String() string {

Callers 1

addSampleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected