Nice!
Now that you mention it I remember reading about that at the time and didn’t use it much because I ran into the segfault issues mentioned. Since then I had completely forgotten about it though, so thanks for reminding me!
I’ve not seen this segfault issue at all, so maybe it’s been fixed in tracy or maybe it’s a difference in the functions used (I’m using ZoneScoped instead of ZoneTransient).
Regarding trace size, I think it really depends on how you are instrumenting things. You can definitely get unmanageably large traces if you are instrumenting everything. With my setup, the trace is about 4GB (according to the tracy UI) when evaluating the CI job at work. That’s been fine so far for me. While working on this, I had added traces to some functions and then removed them cause they led to too much data. I think it can be quite nice to just iterate yourself and see what works.
On lazy evaluation, that’s something I very briefly touched on in the post, but indeed it can be quite confusing. You need to have a clear understanding of lazy evaluation and how it intersects with your profiling tool. This hasn’t been a big issue for me because I didn’t try to get a very fine-grained understanding of evaluation from this tooling. It mostly pointed me to an area of the codebase and then my familiarity with the code made it quick to find the actual issue, eg, it looks like we are evaluating this bit of IFD twice, maybe it’s not being shared in a let-binding. I think my addition of the zone primop can help here as well cause you can scatter that into your code and see when stuff is being forced.