]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/pgo: move pprof graph to internal package
authorMichael Pratt <mpratt@google.com>
Thu, 11 May 2023 18:27:25 +0000 (14:27 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 11 May 2023 20:54:03 +0000 (20:54 +0000)
commitd740b365b7c1ecefb91b2e2fed5719c8ec49d155
tree81fc74a9d778dba7942f531f69a50d8db9719344
parentc2becd70c5dad379def219e60452072ab6e72617
cmd/compile/internal/pgo: move pprof graph to internal package

graph.go is a simplified fork of github.com/google/pprof/internal/graph,
which is used as an intermediate data structure to construct the final
graph exported by package pgo (IRGraph).

Exporting both is a bit confusing as the former is unused outside of the
package. Since the naming is also similar, move graph.go to its own
package entirely.

Change-Id: I2bccb3ddb6c3f63afb869ea9cf34d2a261cad058
Reviewed-on: https://go-review.googlesource.com/c/go/+/494437
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/cmd/compile/internal/pgo/internal/graph/graph.go [moved from src/cmd/compile/internal/pgo/graph.go with 98% similarity]
src/cmd/compile/internal/pgo/irgraph.go