tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Add support for runing capture as long as disk space allows

Open sifangli-labs opened this issue 2 years ago • 4 comments

Hi, we have the need of capturing the traces as long as our app is running which could be as long as 8 hours. Right now Tracy's capture app stores the captured data in Worker's m_data. With time passes, the size increases which eventually will fill up the allocated memory. This makes running the capture app for a long period time like 8 hours impractical with limited RAM size.

Is it easy to add the support to offload the stored data into a fast enough disk while capturing, to keep the RAM use bounded so we could capture long range of traces?

Thanks a lot !

sifangli-labs avatar Oct 16 '24 18:10 sifangli-labs

The intended way to deal with this is to enable a swap file large enough for your needs.

wolfpld avatar Oct 16 '24 22:10 wolfpld

Thx for the response ! - I saw that in the manual. That gives me the best direction of moving forward. One related question I have is: what is the reasonable/recommended size limit of the trace file Tracy-release can handle? If I manage to record a 4GB tracy file, it should have no problem to be used in Tracy-release?

sifangli-labs avatar Oct 17 '24 16:10 sifangli-labs

I don't know. There are no fundamental problems that would make it impossible to process such a large amount of data.

wolfpld avatar Oct 17 '24 16:10 wolfpld

thx - close this issue - great tool !

sifangli-labs avatar Oct 17 '24 16:10 sifangli-labs