Profiling Python code is such a hot mess. Since Linesman is not available anymore I actually don't know a good tool to do development profiling except use cProfile and a lot of time I don't have. Production is worse. Only thing that (sort of works) is Elastic APM (RIP Opbeat which was phenomenal).
Anyone have a better option out there?
I haven't tried it yet, but Scalene looks interesting: https://github.com/plasma-umass/scalene.