英文:
What are the dashed/dotted lines in Go's pprof web output?
问题
在go tool pprof
的Web输出中,虚线/点线代表什么?
我发现有人提到它可能代表内联函数,但没有官方参考资料。
英文:
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.
答案1
得分: 11
虚线表示节点通过另一个未在最终输出中呈现的节点进行连接。
请参阅 https://github.com/google/pprof/blob/master/internal/graph/dotgraph.go#L311
if e.residual {
attr = attr + ` style="dotted"`
}
而"residual"代表
// residual edges connect nodes that were connected through a
separate node, which has been removed from the report.
请参阅 https://github.com/google/pprof/blob/main/internal/graph/graph.go#L255-L257
英文:
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/main/internal/graph/graph.go#L255-L257
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论