tracy icon indicating copy to clipboard operation
tracy copied to clipboard

TRACY_ON_DEMAND does not work with fibers

Open Dragnalith opened this issue 3 years ago • 2 comments

I think I have found a bug.

When using and TRACY_ON_DEMAND at the same time my capture is failing with an "Instrumentation Error" (below). But the error disappear if I remove TRACY_ON_DEMAND.

I have made a test app to reproduce the issue: tracy_fiber_test.zip. You can compare "OnDemand" and "NotOnDemand" build configuration.

image

Dragnalith avatar Jun 01 '22 13:06 Dragnalith

It's not so much of a bug, rather a lack of implementation. All that has to be added for this to work is tracking the per-thread fiber state in some data structure, which can be then pushed to the server on connect. The hard thing is to figure out all the edge cases.

wolfpld avatar Jun 01 '22 18:06 wolfpld

I've run into this issue personally.

Is this something an unfamiliar set of hands can help with?

topolarity avatar Mar 24 '23 03:03 topolarity