py-spy 0.4.2

Sampling profiler for Python programs
Documentation
1
2
3
4
5
6
7
import time
import threading

while True:
    th = threading.Thread(target = lambda: time.sleep(.5))
    th.start()
    th.join()