py-spy icon indicating copy to clipboard operation
py-spy copied to clipboard

Can py-spy dump use `python a.py` instead of pid like py-spy top -- python a.py?

Open yihong0618 opened this issue 1 year ago • 2 comments

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~

yihong0618 avatar May 11 '23 06:05 yihong0618