Skip to content

runtime/pprof: compatibility guarantees for pgo file format #64394

Open
@zamazan4ik

Description

@zamazan4ik

Hi!

We are evaluating using Profile-Guided Optimization (PGO) with Go. Right now the Go compiler stores the profile as a file, that later can be reused. However, I cannot find the information about the backward/forward compatibility guarantees of the pprof format (the format used by the Go compiler) and how the Go compiler deals with it. For us, it's important to know because right now we cannot understand whether will it be possible to use PGO profiles from the older compiler with a newer Go version or not (and vice versa).

In LLVM PGO infrastructure we already met some problems with that - the Clang/LLVM documentation also hasn't this information yet. We want to avoid such problems with Go in the future. A similar situation is with GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112717

The original issue was created here: google/pprof#821 but originally I chose the wrong place for that.

@aalexand friendly ping as you asked :)

Metadata

Metadata

Assignees

Labels

DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions