Skip to content

Commit 31c3793

Browse files
W5HWV4V2
1 parent 4eb0340 commit 31c3793

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Week04/decorators_umut_turk.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ def _performance(*args, **kwargs):
66
if not hasattr(_performance, "counter"):
77
_performance.counter = 0
88
_performance.counter += 1
9-
x = time.time()
109
tracemalloc.start()
10+
x = time.time()
1111
f(args, kwargs)
12-
total_mem = tracemalloc.get_traced_memory
1312
total_time = time.time() - x
13+
total_mem = tracemalloc.get_traced_memory
1414
tracemalloc.stop
1515
return _performance

0 commit comments

Comments
 (0)