py-spy Command Examples

A sampling profiler for Python programs. More information: https://github.com/benfred/py-spy.

py-spy top --pid {{pid}}

py-spy top -- python {{path/to/file.py}}

py-spy record -o {{path/to/profile.svg}} --pid {{pid}}

py-spy dump --pid {{pid}}