mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
The Go profile library only writes compressed profiles using the "best speed" (i.e. largest size) compression ratio setting, and does not have a way to set it. This change avoids calling the Go profile library's default compression code and writes it uncompressed, piped to a writer with the same compression algorithm but higher compression ratio. This is useful because this tool is meant to be used to process profiles before they are checked into the repository (so that they are available at build time for PGO builds). Since they are checked in the repo, we need to minimize their size to keep the repository size small. PiperOrigin-RevId: 651613043