Files
gvisor/tools/profiletool
Etienne PerotandgVisor bot 81f564835e profiletool: Use better compression ratio when writing profiles.
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
2024-07-11 19:42:10 -07:00
..