]> Cypherpunks repositories - gostls13.git/commit
cmd/preprofile: Add preprocess tool to pre-parse the profile file.
authorJin Lin <jinl@uber.com>
Wed, 20 Sep 2023 19:22:26 +0000 (12:22 -0700)
committerMichael Pratt <mpratt@google.com>
Mon, 22 Jan 2024 21:47:07 +0000 (21:47 +0000)
commitb7ae16e04b93c771dca22f7a9b3d6f985027b101
tree5cb6d5f67d8b257fe10938030260d79a452bd9bc
parent6e7aee5f6bdcf2823be358d6e4452b5e2fafb8ed
cmd/preprofile: Add preprocess tool to pre-parse the profile file.

The pgo compilation time is very long if the profile file is large.
We added a preprocess tool to pre-parse profile file in order to
expedite the compile time.

Change-Id: I6f50bbd01f242448e2463607a9b63483c6ca9a12
Reviewed-on: https://go-review.googlesource.com/c/go/+/529738
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/base/flag.go
src/cmd/compile/internal/pgo/irgraph.go
src/cmd/compile/internal/test/pgo_inl_test.go
src/cmd/compile/internal/test/testdata/pgo/inline/inline_hot.pprof.node_map [new file with mode: 0644]
src/cmd/preprofile/main.go [new file with mode: 0644]
src/internal/profile/graph.go [moved from src/cmd/compile/internal/pgo/internal/graph/graph.go with 96% similarity]