tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Adding Tracy_On_Demand makes each frame stack record on top of previous frame's record

Open kekangshu99 opened this issue 10 months ago • 6 comments

Hi Bartosz,
Thank you for making Tracy, it's a great tool and it helps a lot. I'm facing a problem now, I'm trying to add Tracy to a large code base, using clang to automatically insert ZoneScoped at each function start. Works fine if I don't add Tracy_On_Demand macro. But once I added the Tracy_On_Demand macro, each frame record are showed on top of previous frame record. The final trace record is one big call stack with each frame occupies a level. Personally I think my auto-insert script might insert ZoneScoped at the wrong location, but I don't know if that cause the problem. Any idea on what might cause this to happen?

kekangshu99 avatar Sep 05 '23 07:09 kekangshu99