-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
Add suspend/resume profiler #968
base: master
Are you sure you want to change the base?
Conversation
I don't really see how this could work correctly in a multithreaded application. |
This is exactly why it won't work fine. T1: suspend profiling At this point the state on client and server is desynchronized and things can't work properly. |
Yep, that is true. Luckily, some applications (mostly, HPC) use control-flow thread only on which suspending/resuming can happen. |
If one will add some unique info about zones that would be unique for each zone (even the same in cycle), it will be possible to improve understanding by GUI app, that zone was created in suspend mode, but exited in resumed. Unfortunately, it will not help, if zone was created in resumed mode and ended in suspended. |
It seems to me like what you are looking for here is the |
|
Callstack collection should be paused when on demand mode is used and no connection is established. You should be able to extend this to you use case. |
These is an example how I'm using Tracy on HPC cluster. It would be a bit hard to detect a right time when to start data collection (more specifically, start tracy-capture) and when to stop for avoiding out-of-memory errors from logs of application. I think I can start tracy-capture from my app for debugging itself :-) |
This patch implements suspend/resume calls for profiler that stops generating data for server. It is useful for long-living applications which can produce extremely huge data.
Users must be careful about usage TracySuspend/TracyResume inside of zones.
I have fixed couple bugs with proper exit of Tracy client.
Closes #952