py-spy Command Examples

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

py-spy top {{[-p|--pid]}} {{pid}}

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

py-spy record {{[-o|--output]}} {{path/to/profile.svg}} {{[-p|--pid]}} {{pid}}

py-spy dump {{[-p|--pid]}} {{pid}}