Message359241
Please include the script as an attachment or text so that it will be easy to view them. The script as below from the attachment :
import threading
import time
import tracemalloc
def callback():
pass
tracemalloc.start()
for i in range(100000):
snapshot1 = tracemalloc.take_snapshot()
for i in range(100000):
timer = threading.Timer(1, callback)
timer.start()
snapshot2 = tracemalloc.take_snapshot()
top_stats = snapshot2.compare_to(snapshot1, 'lineno')
print("[ Top 10 differences ]")
for stat in top_stats[:10]:
print(stat) |
|
Date |
User |
Action |
Args |
2020-01-03 16:03:10 | xtreak | set | recipients:
+ xtreak, pitrou, mneerup |
2020-01-03 16:03:10 | xtreak | set | messageid: <1578067390.78.0.818121781291.issue39201@roundup.psfhosted.org> |
2020-01-03 16:03:10 | xtreak | link | issue39201 messages |
2020-01-03 16:03:10 | xtreak | create | |
|