在Go的pprof web输出中,虚线/点线代表什么意思?

huangapple go评论91阅读模式
英文:

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

huangapple
  • 本文由 发表于 2015年3月25日 22:27:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/29258455.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定