Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZoneScoped randomly not closing with TRACY_ON_DEMAND #1002

Open
toodemhard opened this issue Mar 6, 2025 · 3 comments
Open

ZoneScoped randomly not closing with TRACY_ON_DEMAND #1002

toodemhard opened this issue Mar 6, 2025 · 3 comments

Comments

@toodemhard
Copy link

Currently using tracy with multi dll setup which was working fine, but when enabling TRACY_ON_DEMAND the scopes randomly don't close which leads to constant stacking. I also tried TRACY_IMPORTS which doc says is required for dlls on windows but it doesn't seem to matter.

Image

@KyleN97
Copy link

KyleN97 commented Mar 19, 2025

I had just run into this issue @toodemhard, What fixed it was also defining TRACY_ON_DEMAND within my .dll which contained the TracyProfiler aswell as my application i was using that .dll within.

Related issue #610

@toodemhard
Copy link
Author

It should have been defined for both but maybe my build went stale again so thanks for the tip. Will try next time I need to profile again.

@transmutrix
Copy link

transmutrix commented Mar 23, 2025

I'm having the same issue. I'm running Tracy in a DLL that gets reloaded (that is, my program loads multiple live copies and only calls into the most recent one), and running Tracy normally, it works totally fine, which surprised and delighted me! But with TRACY_ON_DEMAND scopes don't close. I tried manually doing it with ZoneNamed but it had the same result.

I only wanted to do "on demand" so that I would have a means to turn profiling on and off while the game is running. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants