Re: multithreading, performance, again...

2010-01-18 Thread Oktaka Com
On 30 Aralık 2009, 17:44, mk wrote: > Hello everyone, > > I have figured out (sort of) how to do profiling of multithreaded > programs with cProfile, it goes something like this: > > #!/usr/local/bin/python > > import cProfile > import threading > > class TestProf(threading.Thread): >      def __i

Re: multithreading, performance, again...

2009-12-31 Thread Antoine Pitrou
> 39123 function calls (38988 primitive calls) in 6.004 CPU > seconds > [...] > > It's not burning CPU time in the main thread (profiling with cProfile > indicated smth similar to the above), it's not burning it in the > individual worker threads What do you mean, it's not b

multithreading, performance, again...

2009-12-30 Thread mk
Hello everyone, I have figured out (sort of) how to do profiling of multithreaded programs with cProfile, it goes something like this: #!/usr/local/bin/python import cProfile import threading class TestProf(threading.Thread): def __init__(self, ip): threading.Thread.__init__(sel