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

Method WeightValue

internal/graph/graph.go:285–290  ·  view source on GitHub ↗

WeightValue returns the weight value for this edge, normalizing if a divisor is available.

()

Source from the content-addressed store, hash-verified

283// WeightValue returns the weight value for this edge, normalizing if a
284// divisor is available.
285func (e *Edge) WeightValue() int64 {
286 if e.WeightDiv == 0 {
287 return e.Weight
288 }
289 return e.Weight / e.WeightDiv
290}
291
292// Tag represent sample annotations
293type Tag struct {

Callers 1

addEdgeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected