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

Function graphDebugString

internal/graph/graph_test.go:49–61  ·  view source on GitHub ↗
(graph *Graph)

Source from the content-addressed store, hash-verified

47}
48
49func graphDebugString(graph *Graph) string {
50 debug := ""
51 for i, node := range graph.Nodes {
52 debug += fmt.Sprintf("Node %d: %p\n", i, node)
53 }
54
55 for i, node := range graph.Nodes {
56 debug += "\n"
57 debug += fmt.Sprintf("=== Node %d: %p ===\n", i, node)
58 debug += edgeMapsDebugString(node.In, node.Out)
59 }
60 return debug
61}
62
63func expectedNodesDebugString(expected []expectedNode) string {
64 debug := ""

Callers 1

TestTrimTreeFunction · 0.85

Calls 1

edgeMapsDebugStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…