Forrest logo
back to context overview

py-spy

List of commands for py-spy:

  • py-spy:tldr:01d9d py-spy: Show a live view of the functions that take the most execution time of a running process.
    $ py-spy top --pid ${pid}
    try on your machine
    explain this command
  • py-spy:tldr:4af81 py-spy: Dump the call stack of a running process.
    $ py-spy dump --pid ${pid}
    try on your machine
    explain this command
  • py-spy:tldr:83d59 py-spy: Produce an SVG flame graph of the function call execution time.
    $ py-spy record -o ${path-to-profile-svg} --pid ${pid}
    try on your machine
    explain this command
back to context overview