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

Method Sum

internal/graph/graph.go:649–655  ·  view source on GitHub ↗

Sum adds the flat and cum values of a set of nodes.

()

Source from the content-addressed store, hash-verified

647
648// Sum adds the flat and cum values of a set of nodes.
649func (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
657func (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

Callers 4

printSourceFunction · 0.45
getSourceFromFileFunction · 0.45
newTrimmedGraphMethod · 0.45
PrintAssemblyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected