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

Method Sum

internal/graph/graph.go:1147–1153  ·  view source on GitHub ↗

Sum returns the total weight for a set of nodes.

()

Source from the content-addressed store, hash-verified

1145
1146// Sum returns the total weight for a set of nodes.
1147func (e EdgeMap) Sum() int64 {
1148 var ret int64
1149 for _, edge := range e {
1150 ret += edge.Weight
1151 }
1152 return ret
1153}
1154
1155type edgeList []*Edge
1156

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected