mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 12:24:49 +02:00
timing worker launches
This commit is contained in:
parent
c946c4f3d2
commit
ccaa7143b5
1 changed files with 2 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ def __init__(self, notify_on_job_done=lambda x: x, pool_size=None,
|
|||
self.start()
|
||||
|
||||
def launch_worker(self, gui=False, redirect_output=None):
|
||||
#start = time.time()
|
||||
with self._worker_launch_lock:
|
||||
self.launched_worker_count += 1
|
||||
id = self.launched_worker_count
|
||||
|
|
@ -136,6 +137,7 @@ def launch_worker(self, gui=False, redirect_output=None):
|
|||
break
|
||||
if isinstance(cw, basestring):
|
||||
raise CriticalError('Failed to launch worker process:\n'+cw)
|
||||
#print 'Launch took:', time.time() - start
|
||||
return cw
|
||||
|
||||
def do_launch(self, env, gui, redirect_output, rfile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue