Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
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) ---------- nosy: +pitrou, xtreak -odinsbane _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39201> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com