News for hackers. Stuff that matters.
Re:Pyheatmagic: Profile and view your Python code as a heat map by Beltiras on Wednesday November 03, 2021 @06:00AM (#29092688)
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?

Re:Pyheatmagic: Profile and view your Python code as a heat map by leontrolski on Wednesday November 03, 2021 @07:44AM (#29093346)
I've always used snakeviz with the stdlib profiler https://jiffyclub.github.io/snakeviz/

In prod, the pyinstrument profiler has worked well for me https://pyinstrument.readthedocs.io/en/latest/guide.html#pro...

Re:Pyheatmagic: Profile and view your Python code as a heat map by BiteCode_dev on Wednesday November 03, 2021 @07:39AM (#29093319)
Re:Pyheatmagic: Profile and view your Python code as a heat map by p403n1x87 on Wednesday November 03, 2021 @09:54AM (#29094564)
Re:Pyheatmagic: Profile and view your Python code as a heat map by Beltiras on Wednesday November 03, 2021 @07:42AM (#29093336)
This looks really promising.
Re:Pyheatmagic: Profile and view your Python code as a heat map by dave_sullivan on Wednesday November 03, 2021 @07:26AM (#29093213)
Does line_profiler not work anymore?

https://github.com/pyutils/line_profiler

Re:Pyheatmagic: Profile and view your Python code as a heat map by Beltiras on Wednesday November 03, 2021 @07:44AM (#29093349)
I suppose it does. I miss call graphs thou.
Re:Pyheatmagic: Profile and view your Python code as a heat map by memco on Friday November 05, 2021 @09:42PM (#29126761)
I haven't tried it yet, but Scalene looks interesting: https://github.com/plasma-umass/scalene.
Re:Pyheatmagic: Profile and view your Python code as a heat map by baq on Wednesday November 03, 2021 @07:49AM (#29093386)
py-spy with speedscope output is what I use in both prod and dev.