What does HackerNews think of pyinstrument?
🚴 Call stack profiler for Python. Shows you why your code is slow!
Language:
Python
Is there something about the actual profiler that differs from existing tools like pyinstrument [1] or py-spy [2]? I know pyinstrument has various output options and I wonder if it could potentially output something readable by the Firefox Profiler tool.
[1] : https://github.com/joerick/pyinstrument [2] : https://github.com/benfred/py-spy
Also, this kind of profiler is great because you can use it on any running Python program, which is pretty magical and very useful. (especially when it's an application you didn't write)
But it's not right for every use case: by design austin/py-spy can only really profile the whole program, and if you want to profile a specific function or endpoint in your program, something like PyInstrument https://github.com/joerick/pyinstrument (which includes Django middlewares & Flask decorators) is a lot more useful.
Another similar sampling profiler which has decent performance is pyinstrument: https://github.com/joerick/pyinstrument