Skip to content

Commit 11d7676

Browse files
author
Armand Foucault
committed
Passing func in TimeStamper.call_on_stack
1 parent b3f0781 commit 11d7676

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

memory_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def f(*args, **kwds):
555555
_get_memory(os.getpid(), self.backend, timestamps=True, filename=filename)]
556556
self.functions[func].append(timestamps)
557557
try:
558-
with self.call_on_stack(*args, **kwds) as result:
558+
with self.call_on_stack(func, *args, **kwds) as result:
559559
return result
560560
finally:
561561
# end time

0 commit comments

Comments
 (0)