wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

Add support for runing capture as long as disk space allows #912

Closed sifangli-labs closed 1 month ago

sifangli-labs commented 1 month ago

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 !

wolfpld commented 1 month ago

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

sifangli-labs commented 1 month ago

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?

wolfpld commented 1 month ago

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

sifangli-labs commented 1 month ago

thx - close this issue - great tool !