viff

changeset 1374:8144c02c12f6

Merged with Marcel.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Fri, 30 Oct 2009 12:23:46 +0100
parents 8a4d4e8e99eb 151d4f58ff49
children 57b5234df725 a798274e8537 36c8915d718a
files
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line diff
     1.1 --- a/viff/runtime.py	Fri Oct 30 12:22:46 2009 +0100
     1.2 +++ b/viff/runtime.py	Fri Oct 30 12:23:46 2009 +0100
     1.3 @@ -804,14 +804,7 @@
     1.4          example of a method fulfilling this interface.
     1.5          """
     1.6  
     1.7 -        def update(results, program_counters, start_time, count, what):
     1.8 -            stop = time.time()
     1.9 -
    1.10 -            print
    1.11 -            print "Total time used: %.3f sec" % (stop - start_time)
    1.12 -            print "Time per %s operation: %.0f ms" % (what, 1000*(stop - start_time) / count)
    1.13 -            print "*" * 6
    1.14 -
    1.15 +        def update(results, program_counters):
    1.16              # Update the pool with pairs of program counter and data.
    1.17              self._pool.update(zip(program_counters, results))
    1.18  
    1.19 @@ -831,7 +824,7 @@
    1.20                  results = func(quantity=len(program_counters), *args)
    1.21                  self.unfork_pc()
    1.22                  ready = gatherResults(results)
    1.23 -                ready.addCallback(update, program_counters[:len(results)], start_time, count, generator)
    1.24 +                ready.addCallback(update, program_counters[:len(results)])
    1.25                  del program_counters[:len(results)]
    1.26                  wait_list.append(ready)
    1.27              self.unfork_pc()