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
I want to run a py-spy profiling, e.g. py-spy record -o /tmp/py_flamegraph.svg --idle python3 ${file}, but only profile a certain piece of the code, because the code before and after it adds noise in the flamegraph. I could use attach to a running pid, but it's cumbersome and tricky to ensure that I attach and detach at the appropriate times. Instead, I'd like something simple like:
I want to run a py-spy profiling, e.g.
py-spy record -o /tmp/py_flamegraph.svg --idle python3 ${file}
, but only profile a certain piece of the code, because the code before and after it adds noise in the flamegraph. I could use attach to a running pid, but it's cumbersome and tricky to ensure that I attach and detach at the appropriate times. Instead, I'd like something simple like:and maybe a flag for the CLI telling it not to automatically begin, but rather to let the profiling begin programmatically
The text was updated successfully, but these errors were encountered: