You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful if py-spy could be run in such a way that it would collect data for the flame graph until interrupted by a signal.
My use case would be to write a Django middleware that would attach py-spy at the start of a request, and interrupt it when the request is done, and then return the flame graph svg to the client instead of the actual content.
This would also allow to write a context manager that starts/stops py-spy during the run of a single block of code.
The text was updated successfully, but these errors were encountered:
It would be useful if py-spy could be run in such a way that it would collect data for the flame graph until interrupted by a signal.
My use case would be to write a Django middleware that would attach py-spy at the start of a request, and interrupt it when the request is done, and then return the flame graph svg to the client instead of the actual content.
This would also allow to write a context manager that starts/stops py-spy during the run of a single block of code.
The text was updated successfully, but these errors were encountered: