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

Method FlatValue

internal/graph/graph.go:104–109  ·  view source on GitHub ↗

FlatValue returns the exclusive value for this node, computing the mean if a divisor is available.

()

Source from the content-addressed store, hash-verified

102// FlatValue returns the exclusive value for this node, computing the
103// mean if a divisor is available.
104func (n *Node) FlatValue() int64 {
105 if n.FlatDiv == 0 {
106 return n.Flat
107 }
108 return n.Flat / n.FlatDiv
109}
110
111// CumValue returns the inclusive value for this node, computing the
112// mean if a divisor is available.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected