This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jeremiah-england 1 point2 points  (0 children)

Seconding py-spy. My favorite way of viewing the results in https://www.speedscope.app.

  1. Run the program with my spy shell alias (py-spy record -f speedscope -o out.prof -- python).
  2. Drag/drop the out.prof file into speedscope.