Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed up python tracer with frame.f_trace_lines = False #1381

Merged
merged 1 commit into from May 28, 2022

Commits on May 24, 2022

  1. speed up python tracer with frame.f_trace_lines = False

    use the python >= 3.7 feature of being able to disable line tracing by
    setting the frame attribute f_trace_lines to False. This can be used for
    the frames of functions that we aren't collecting coverage information
    for (eg those functions in the stdlib).
    
    This speeds up the pure python tracer in CPython by ~9x and in PyPy by
    80% on a coverage run of one realistic project that I tried.
    cfbolz committed May 24, 2022
    Copy the full SHA
    2f39124 View commit details
    Browse the repository at this point in the history