Skip to content

Commit 116ec47

Browse files
authored
Update decorators_rukiye_ilhan.py
1 parent e11cdb8 commit 116ec47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Week04/decorators_rukiye_ilhan.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def perform(*args,**kwargs):
1515
end_time = time.time()
1616
used_memory = tracemalloc.get_traced_memory()[1] # [0] gives current memory consumption but [1] gives total(max) memory consumption during thr last fallowing time
1717
tracemalloc.stop() # we started memeory following process only to find how much memory uses by thr called function not the entire program ,so we stop memory following when the jop of function is finished
18-
performance_decoraters.counter += 1
19-
performance_decoraters.total_time += end_time - start_time
20-
performance_decoraters.total_mem += used_memory
18+
performance.counter += 1
19+
performance.total_time += end_time - start_time
20+
performance.total_mem += used_memory
2121
return result
2222
return perform

0 commit comments

Comments
 (0)