Content pfp
Content
@
0 reply
0 recast
0 reaction

Lefteris Karapetsas pfp
Lefteris Karapetsas
@lefteris.eth
For profiling complicated user-facing python code what tools do you guys use? cProfile with flamegraph is what I know. Any other tools?
2 replies
1 recast
22 reactions

jon pfp
jon
@
I like Py-Spy. It generates flame graphs, great for production as it doesn't require any code modification. It also handles outputs for multithreading really well. If it's a mixed Python/C++ project then Scalane is a good tool as it shows more than just time spent on interface calls.
1 reply
0 recast
1 reaction

Heikki Arponen  pfp
Heikki Arponen
@harpone
not sure about "user facing" but I like pyinstrument a lot. Really nice html output.
0 reply
0 recast
1 reaction