Fri Nov 16 12:47:32 2007 scheduler.log 2570019 function calls in 11.563 CPU seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 90001 3.057 0.000 11.453 0.000 scheduler.py:27(tasks) 110000 1.513 0.000 3.860 0.000 /usr/lib/python2.5/Queue.py:147(get) 110000 1.109 0.000 1.109 0.000 {_heapq.heappop} 110001 0.824 0.000 1.585 0.000 /usr/lib/python2.5/threading.py:247(notify) 100000 0.810 0.000 1.305 0.000 /usr/lib/python2.5/Queue.py:43(task_done) 430003 0.753 0.000 0.753 0.000 {built-in method acquire} 110001 0.739 0.000 1.068 0.000 /usr/lib/python2.5/threading.py:353(clear) 320002 0.495 0.000 0.495 0.000 {built-in method release} 110001 0.388 0.000 0.606 0.000 /usr/lib/python2.5/threading.py:197(_is_owned) 110000 0.372 0.000 4.233 0.000 /usr/lib/python2.5/Queue.py:181(get_nowait) 100000 0.233 0.000 0.315 0.000 /usr/lib/python2.5/Queue.py:214(_get) 100000 0.225 0.000 0.225 0.000 {_heapq.heappush} 210000 0.209 0.000 0.209 0.000 {time.time} 110000 0.189 0.000 0.189 0.000 /usr/lib/python2.5/Queue.py:202(_empty) 110001 0.156 0.000 0.156 0.000 /usr/lib/python2.5/threading.py:44(_note) 110001 0.153 0.000 0.153 0.000 {built-in method __enter__} 1 0.110 0.110 11.563 11.563 scheduler.py:76(consume) 120002 0.101 0.000 0.101 0.000 {len} 100000 0.081 0.000 0.081 0.000 {method 'popleft' of 'collections.deque' objects} 10001 0.046 0.000 0.192 0.000 /usr/lib/python2.5/threading.py:264(notifyAll) 1 0.000 0.000 0.000 0.000 scheduler.py:23(stop) 1 0.000 0.000 0.000 0.000 /usr/lib/python2.5/threading.py:345(set) 1 0.000 0.000 11.563 11.563 :1() 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}