Options (2)
-p, --pidbooleanShow a live view of the functions that take the most execution time of a running process
Example:
py-spy top {{[-p|--pid]}} {{pid}}-o, --outputbooleanProduce an SVG flame graph of the function call execution time
Example:
py-spy record {{[-o|--output]}} {{path/to/profile.svg}} {{[-p|--pid]}} {{pid}}Examples (4)
Show a live view of the functions that take the most execution time of a running process
Start a program and show a live view of the functions that take the most execution time
Produce an SVG flame graph of the function call execution time
py-spy record [-o|--output] path/to/profile.svg [-p|--pid] pidDump the call stack of a running process
py-spy dump [-p|--pid] pidmade by @shridhargupta | data from tldr-pages