#53 bad time.time() call breaks timemax

closed-duplicate
nobody
5
2005-04-16
2005-04-16
Anonymous
No

The code in profiler.py, class Profiler, method run is
broken.

It has a method parameter called time, and at the same
time it tries to use the time module.

class Profiler:
MemoryTimerResolution = 0.103

def run(self, memory, time, memorymax, timemax):
self.memory = memory
self.memorymax = memorymax
self.time = time
if timemax is None:
self.endtime = None
else:
self.endtime = time.time() + timemax
self.alarms = []
profilers.append(self)
go()

The effect is that the timemax parameter can't be used
when calling psyco.profile()

I'm using the Debian python2.3-psyco package, version
1.4-1 and python2.3 version 2.3.5-1.

Discussion

  • Armin Rigo
    Armin Rigo
    2005-04-16

    • status: open --> closed
     
  • Armin Rigo
    Armin Rigo
    2005-04-16

    • status: closed --> closed-duplicate
     
  • Armin Rigo
    Armin Rigo
    2005-04-16

    Logged In: YES
    user_id=4771

    Already fixed in the CVS tree. Thanks for the report anyway.