Message359241
| Author |
xtreak |
| Recipients |
mneerup, pitrou, xtreak |
| Date |
2020年01月03日.16:03:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1578067390.78.0.818121781291.issue39201@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| 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 |
|