py-spy 0.4.2

Sampling profiler for Python programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import time


def f():
    [
        # Must be split over multiple lines to see the error.
        # https://github.com/benfred/py-spy/pull/208
        time.sleep(1)
        for _ in range(1000)
    ]


f()