by JackC · 6y ago · 0 comments
One profiler I used recently which isn't mentioned in the readme is pyflame (developed at uber):
https://pyflame.readthedocs.io/
pyflame likewise claims to run on unmodified source code and be fast enough to run in production, so it might be worth adding to the comparison. It generates flamegraphs, which greatly sped up debugging the other day when I needed to figure out why something was slow somewhere in a Django request-response callstack.
> While pyflame is a great project, it doesn't support Python 3.7 yet and doesn't work on OSX, Windows or FreeBSD.
I wonder how the CPU profiling in Scalene is different. It does not mention PyFlame or py-spy at all in the Readme. Of course, the memory profiler is some nice extra.
My team has a large body of profiling code written with kernprof and none of it modifies the underlying source. Profiler annotations are solely added automatically by the little profiler runner tooling we wrote.
Not to say other profiling tools aren’t worth it.
Pyflame: A Ptracing Profiler For Python. This project is deprecated and not maintained
per
https://github.com/uber-archive/pyflame