-
-
Notifications
You must be signed in to change notification settings - Fork 977
Open
Labels
awaiting responseClarification on something is requested from the reporterClarification on something is requested from the reporterbugSomething isn't workingSomething isn't working
Description
The active status of fibers seem to be showing up incorrectly recently, specifically all zones seem to show up as inactive. I've got a minimal repro to illustrate this:
int main() {
tracy::StartupProfiler();
std::this_thread::sleep_for(5s);
for (int i = 0; i < 100; ++i) {
TracyCFiberEnter("TestFiber");
TracyCZoneN(ctx1, "inside fiber", true);
std::this_thread::sleep_for(10ms);
TracyCZoneEnd(ctx1);
TracyCFiberLeave;
TracyCZoneN(ctx2, "outside fiber", true);
std::this_thread::sleep_for(10ms);
TracyCZoneEnd(ctx2);
TracyCFrameMark;
}
tracy::ShutdownProfiler();
return 0;
}
Notice how the execution bar above the fiber is always green, even though we definitely are entering and exiting the fiber, and the zones appear to fade out further to the left indicating they were inactive.
The expected behaviour of this is that the zones 'inside fiber' should not be a faded color, the execution status of the fiber is red during the 'outside fiber' zone on the main thread where we left the fiber. I've considered that I might be doing something wrong, but the example above seems fairly textbook. Is this a bug in tracy?
Metadata
Metadata
Assignees
Labels
awaiting responseClarification on something is requested from the reporterClarification on something is requested from the reporterbugSomething isn't workingSomething isn't working