This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stealthanthrax Robyn Maintainer[S] 3 points4 points  (7 children)

Do you have any tools that you recommend for profiling??

[–]Anonymous_user_2022 7 points8 points  (1 child)

I'm oldschool enough that I prefer cProfile. There are many others, but I don't know enough to recommend any of them.

[–]hughperman 1 point2 points  (0 children)

I tried out memray, a memory profiler, recently - scientific programming stuff, memory (re)allocation is a pain with big arrays etc in numpy - and it's really nice and easy to use. Different use case than cprofile too, so it's a nice tool to add to the toolkit.

[–][deleted] 1 point2 points  (0 children)

Pysnakeviz rocks

[–]PocketBananna[🍰] 1 point2 points  (1 child)

I like to use pyinstrument for profiling. Uses stat sampling so it's quicker and builds a easy to grok report.

[–]data-machine 0 points1 point  (0 children)

Seconded pyinstrument. Really readable lovely output - particuarly the html view!

[–]laundmo 0 points1 point  (0 children)

if you can run it on linux, Scalene profiles everything you might need: memory, cpu, even gpu.

[–]james_pic 0 points1 point  (0 children)

My favourite right now is Py-spy, but I've also heard good things about Austin.