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

Function createEdges

internal/graph/graph_test.go:141–150  ·  view source on GitHub ↗

createEdges creates directed edges from the parent to each of the children.

(parent *Node, children ...*Node)

Source from the content-addressed store, hash-verified

139
140// createEdges creates directed edges from the parent to each of the children.
141func createEdges(parent *Node, children ...*Node) {
142 for _, child := range children {
143 edge := &Edge{
144 Src: parent,
145 Dest: child,
146 }
147 parent.Out[child] = edge
148 child.In[parent] = edge
149 }
150}
151
152// createEmptyNode creates a node without any edges.
153func createEmptyNode() *Node {

Callers 2

createTestCase1Function · 0.85
createTestCase2Function · 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…