Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow collecting data for flame graph until interrupted #21
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.