py-spy
py-spy copied to clipboard
Allow selecting default sort method from command line
Usually I am mostly interested in sorting profiling results by OwnTime or TotalTime, so my workflow with py-spy is nearly always to press 3 or 4 right after launching it.
It would be a small usability improvement if we could have something like py-spy --sort-by=OwnTime ....
The latest version of py-spy (v0.2.0) defaults to column 3 now - not fully what you're looking for but hopefully a better default
thanks :)