diff options
| author | Cherry Mui <cherryyz@google.com> | 2023-09-15 12:13:09 -0400 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2023-09-19 15:42:58 +0000 |
| commit | 3fb86fb8645ceb6163d1a9f573c2b4eec2a310f9 (patch) | |
| tree | 92c0f9ea7adc8d2a042971fabdb56396f050a9bc /src/cmd/compile/internal/base/debug.go | |
| parent | eca5a97340e6b475268a522012f30e8e25bb8b8f (diff) | |
| download | go-3fb86fb8645ceb6163d1a9f573c2b4eec2a310f9.tar.xz | |
cmd/compile: add pgohash for debugging/bisecting PGO optimizations
When a PGO build fails or produces incorrect program, it is often
unclear what the problem is. Add pgo hash so we can bisect to
individual optimization decisions, which often helps debugging.
Related to #58153.
Change-Id: I651ffd9c53bad60f2f28c8ec2a90a3f532982712
Reviewed-on: https://go-review.googlesource.com/c/go/+/528400
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/cmd/compile/internal/base/debug.go')
| -rw-r--r-- | src/cmd/compile/internal/base/debug.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/base/debug.go b/src/cmd/compile/internal/base/debug.go index 244ba1bc9d..390ddf3176 100644 --- a/src/cmd/compile/internal/base/debug.go +++ b/src/cmd/compile/internal/base/debug.go @@ -55,6 +55,7 @@ type DebugFlags struct { ABIWrap int `help:"print information about ABI wrapper generation"` MayMoreStack string `help:"call named function before all stack growth checks" concurrent:"ok"` PGODebug int `help:"debug profile-guided optimizations"` + PGOHash string `help:"hash value for debugging profile-guided optimizations" concurrent:"ok"` PGOInline int `help:"enable profile-guided inlining" concurrent:"ok"` PGOInlineCDFThreshold string `help:"cumulative threshold percentage for determining call sites as hot candidates for inlining" concurrent:"ok"` PGOInlineBudget int `help:"inline budget for hot functions" concurrent:"ok"` |
