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

Function tagDistance

internal/graph/dotgraph.go:431–437  ·  view source on GitHub ↗
(t, u *Tag)

Source from the content-addressed store, hash-verified

429}
430
431func tagDistance(t, u *Tag) float64 {
432 v, _ := measurement.Scale(u.Value, u.Unit, t.Unit)
433 if v < float64(t.Value) {
434 return float64(t.Value) - v
435 }
436 return v - float64(t.Value)
437}
438
439func (b *builder) tagGroupLabel(g []*Tag) (label string, flat, cum int64) {
440 if len(g) == 1 {

Callers 1

collapsedTagsMethod · 0.85

Calls 1

ScaleFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…