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

Method CumValue

internal/graph/graph.go:113–118  ·  view source on GitHub ↗

CumValue returns the inclusive value for this node, computing the mean if a divisor is available.

()

Source from the content-addressed store, hash-verified

111// CumValue returns the inclusive value for this node, computing the
112// mean if a divisor is available.
113func (n *Node) CumValue() int64 {
114 if n.CumDiv == 0 {
115 return n.Cum
116 }
117 return n.Cum / n.CumDiv
118}
119
120// AddToEdge increases the weight of an edge between two nodes. If
121// there isn't such an edge one is created.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected