/rev/8144c02c12f6
changeset: 1374:8144c02c12f6
user: Janus Dam Nielsen <[email protected]>
date: Fri Oct 30 12:23:46 2009 +0100
summary: Merged with Marcel.
diffstat:
viff/runtime.py | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (28 lines):
diff -r 8a4d4e8e99eb -r 8144c02c12f6 viff/runtime.py
--- a/viff/runtime.py Fri Oct 30 12:22:46 2009 +0100
+++ b/viff/runtime.py Fri Oct 30 12:23:46 2009 +0100
@@ -804,14 +804,7 @@
example of a method fulfilling this interface.
"""
- def update(results, program_counters, start_time, count, what):
- stop = time.time()
-
- print
- print "Total time used: %.3f sec" % (stop - start_time)
- print "Time per %s operation: %.0f ms" % (what, 1000*(stop -
start_time) / count)
- print "*" * 6
-
+ def update(results, program_counters):
# Update the pool with pairs of program counter and data.
self._pool.update(zip(program_counters, results))
@@ -831,7 +824,7 @@
results = func(quantity=len(program_counters), *args)
self.unfork_pc()
ready = gatherResults(results)
- ready.addCallback(update, program_counters[:len(results)],
start_time, count, generator)
+ ready.addCallback(update, program_counters[:len(results)])
del program_counters[:len(results)]
wait_list.append(ready)
self.unfork_pc()
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk