tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Question: How to Sync on Execution End

Open git-dimiz opened this issue 10 months ago • 2 comments

Hi,

I've stumbled upon this project and I'm experimenting with it. Now I've got probably quite the nooby question but I didn't really find any mentioning of a sync mechanism in the manual. So here is kind of my example.

#include <tracy/Tracy.hpp>

int main() {
    ZoneScoped;
    return 0;
}

When working with the GUI this will not really work because the process dies way to fast before the trace information can be send to the server. How do I force a sync before the application dies?

git-dimiz avatar Feb 27 '25 18:02 git-dimiz

You can either use #define TRACY_NO_EXIT during compilation or as an environment variable: TRACY_NO_EXIT=1 ./your_program

LutzenH avatar Feb 28 '25 23:02 LutzenH

I see, thank you for the answer 🙂 ! Is there a particular reason why there is no "flush". I think this should be possible. Just wait until the internal message queue is empty and then exit?

git-dimiz avatar Mar 01 '25 11:03 git-dimiz