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

TypeAlias NodePtrSet

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

NodePtrSet is a collection of nodes. Trimming a graph or tree requires a set of objects which uniquely identify the nodes to keep. In a graph, NodeInfo works as a unique identifier; however, in a tree multiple nodes may share identical NodeInfos. A *Node does uniquely identify a node so we can use t

Source from the content-addressed store, hash-verified

227// NodeSet, so there would not be the required context of the initial graph to
228// allow for the use of *Node.
229type NodePtrSet map[*Node]bool
230
231// FindOrInsertNode takes the info for a node and either returns a matching node
232// from the node map if one exists, or adds one to the map if one does not.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected