Sum adds the flat and cum values of a set of nodes.
()
| 647 | |
| 648 | // Sum adds the flat and cum values of a set of nodes. |
| 649 | func (ns Nodes) Sum() (flat int64, cum int64) { |
| 650 | for _, n := range ns { |
| 651 | flat += n.Flat |
| 652 | cum += n.Cum |
| 653 | } |
| 654 | return |
| 655 | } |
| 656 | |
| 657 | func (n *Node) addSample(dw, w int64, labels string, numLabel map[string][]int64, numUnit map[string][]string, format func(int64, string) string, flat bool) { |
| 658 | // Update sample value |
no outgoing calls
no test coverage detected