py-spy
py-spy copied to clipboard
Infer format from output filename extension
The converse of https://github.com/benfred/py-spy/issues/229: I prefer speedscope format, so it would be nice to just be able to type py-spy record -o profile.json and not also have to add -f speedscope. Or to not get accidentally get an SVG flamegraph named profile.json :)