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

Function compareNodes

internal/graph/graph.go:1064–1066  ·  view source on GitHub ↗

compareNodes compares two nodes to provide a deterministic ordering between them. Two nodes cannot have the same Node.Info value.

(l, r *Node)

Source from the content-addressed store, hash-verified

1062// compareNodes compares two nodes to provide a deterministic ordering
1063// between them. Two nodes cannot have the same Node.Info value.
1064func compareNodes(l, r *Node) bool {
1065 return fmt.Sprint(l.Info) < fmt.Sprint(r.Info)
1066}
1067
1068// entropyScore computes a score for a node representing how important
1069// it is to include this node on a graph visualization. It is used to

Callers 1

SortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…