py-spy
py-spy copied to clipboard
Can py-spy dump use `python a.py` instead of pid like py-spy top -- python a.py?
cat a.py
def foo():
return 2
def bar():
return 3
if __name__ == "__main__":
import time
print(foo() + bar())
time.sleep(30)
py-spy top python a.py work
py-spy dump python a.py (do not support)
Thanks for your great repo~