magic-trace icon indicating copy to clipboard operation
magic-trace copied to clipboard

Compressed trace files

Open cgaebel opened this issue 3 years ago • 1 comments

Trace files are big and compress really well, 5x-ish in my experience. Could magic-trace write out compressed traces instead of raw traces?

Perfetto already has support for loading gzipped traces. But gzip is really slow (fingers crossed for Sapphire Rapids, but that's years from being commonplace).

As far as I can tell, we have two options here:

  • teach magic-trace to write gzipped traces, or
  • teach magic-trace to write zstd'd traces, and also teach perfetto to load them.

The first option is easier, but the second option would be faster to save and load. FWIW, Tudor thinks zstd is overkill because we're so slow at decoding otherwise.

cgaebel avatar Apr 15 '22 21:04 cgaebel

@Lilydemi has a PR for this!

hlian avatar Jul 20 '22 15:07 hlian