Proflie multi-thread python application

493 Views Asked by At

I'm using Pycharm IDE on a multi thread python application. I tried the default cProfile and the yappi but cannot get results for threads other than the main thread. I'm using python 3.6.

Any help?

1

There are 1 best solutions below

1
Reroute On

It seems the go to approach for persistent threads is to run a cprofile instance per thread, then combine the results, better explained here: https://stackoverflow.com/a/2218592/9981387