(label, unit string, value int64)
| 710 | } |
| 711 | |
| 712 | func (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. |
| 726 | func (g *Graph) String() string { |