Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the dashed/dotted lines in Go's pprof web output?

Tags:

go

pprof

In the web output of go tool pprof, what are the dashed/dotted lines?

I find some mention that it could represent inlined functions, but there's no canonical reference.

like image 416
Matt Joiner Avatar asked Dec 20 '22 05:12

Matt Joiner


1 Answers

Dotted lines represent nodes' connection through another node, which is not rendered in final output.

See https://github.com/google/pprof/blob/master/internal/graph/dotgraph.go#L311

if e.residual {
    attr = attr + ` style="dotted"`
}

and residual stands for

// residual edges connect nodes that were connected through a separate node, which has been removed from the report.

https://github.com/google/pprof/blob/master/internal/graph/graph.go#L243

like image 152
divan Avatar answered Jan 05 '23 15:01

divan