CmdID

CmdID / Commands

py-spy

A sampling profiler for Python programs. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Show a live view of the functions that take the most execution time of a running process

py-spy top --pid process_idIdentify

Start a program and show a live view of the functions that take the most execution time

py-spy top -- python path/to/file.pyIdentify

Produce an SVG flame graph of the function call execution time

py-spy record --output path/to/profile.svg --pid process_idIdentify

Dump the call stack of a running process

py-spy dump --pid process_idIdentify