【问题标题】:What are the dashed/dotted lines in Go's pprof web output?Go 的 pprof 网络输出中的虚线/点线是什么?
【发布时间】:2019-05-06 22:56:14
【问题描述】:

go tool pprof 的网页输出中,虚线/点划线是什么?

我发现有人提到它可以表示内联函数,但没有规范参考。

【问题讨论】:

    标签: go pprof


    【解决方案1】:

    虚线表示节点通过另一个节点连接,最终输出中不会呈现。

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

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

    残差代表

    // 残差边连接通过 a 连接的节点 单独的节点,已从报告中删除。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-16
      • 1970-01-01
      • 1970-01-01
      • 2018-02-17
      • 2021-12-30
      相关资源
      最近更新 更多