Any way to use cProfile in a multi-threaded program?

mk mrkafk at gmail.com
Wed Dec 30 10:00:04 EST 2009


I'm stumped; I read somewhere that one would have to modify Thread.run() 
  method but I have never modified Python methods nor would I really 
want to do it.

Is there any way to start cProfile on each thread and then combine the 
stats?

Regards,
mk




More information about the Python-list mailing list