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

Function edgeMapsDebugString

internal/graph/graph_test.go:34–47  ·  view source on GitHub ↗
(in, out EdgeMap)

Source from the content-addressed store, hash-verified

32}
33
34func edgeMapsDebugString(in, out EdgeMap) string {
35 debug := ""
36 debug += "In Edges:\n"
37 for parent, edge := range in {
38 debug += fmt.Sprintf("\tParent: %p\n", parent)
39 debug += edgeDebugString(edge)
40 }
41 debug += "Out Edges:\n"
42 for child, edge := range out {
43 debug += fmt.Sprintf("\tChild: %p\n", child)
44 debug += edgeDebugString(edge)
45 }
46 return debug
47}
48
49func graphDebugString(graph *Graph) string {
50 debug := ""

Callers 2

graphDebugStringFunction · 0.85
expectedNodesDebugStringFunction · 0.85

Calls 1

edgeDebugStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…