Question: How to Sync on Execution End
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?
You can either use #define TRACY_NO_EXIT during compilation or as an environment variable: TRACY_NO_EXIT=1 ./your_program
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?