1

I'm trying to find the best way to profile a method that uses redis queue to set a number of jobs for running workers, waits till they're done, and returns.

I tried using cProfile, but it just profiles what's going on in the main thread. Is there a way to configure it to see what's going on with the workers, or another tool that can do this?

zoopz
  • 1,099
  • 2
  • 9
  • 10
  • You can use [yappi](https://pypi.python.org/pypi/yappi) or you can profile each thread. [Here](http://stackoverflow.com/questions/11041683/python-multiprocess-profiling?rq=1) you can find a sample. – Jose Raul Barreras Sep 22 '16 at 15:45
  • Thank you. The yappi page seems to be leading to a lot of dead links however, and no api docs seem to be available? – zoopz Sep 23 '16 at 16:44
  • 1
    I found (another one)[http://www.pyvmmonitor.com/license.html]. It could be nice. – Jose Raul Barreras Sep 23 '16 at 21:04

0 Answers0