tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Feature request: Option to shard trace files

Open alex-pahdo opened this issue 2 years ago • 1 comments

At the moment I can get around this problem by running the analyzer on a machine with more RAM, but I have a very big trace (1.15GB with LZ4 Extreme) that uses over 9GB memory in the analyzer, and the machine I wanted to use only has 8GB RAM, and even when I limit range to a few frames, looking at zones involves a lot of thrashing.

I'd like to be able to split off, say, 2 minutes worth of frames to save and send a smaller file to teammates to look at. A generalized approach would save the trace into multiple shards, so that when browsing time segments, I only need to keep 1-3 shards in memory at a time. It would also be nice for the server to be able to do this during recording.

alex-pahdo avatar Aug 30 '23 18:08 alex-pahdo

I think this feature may also be a good base to support tracing to a ring buffer in memory and only save the trace to disk on special triggers, similar to how the cockpit voice recorder and flight data recorder works at commercial airplanes.

aagor avatar Jul 14 '25 12:07 aagor