summaryrefslogtreecommitdiff
path: root/coverage/python.py
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2022-05-28 21:34:43 +0200
committerGitHub <noreply@github.com>2022-05-28 12:34:43 -0700
commit08ec70fe8acbd5864b3c8c3dcc4c65c38afeeff8 (patch)
tree54fe62d6fb4abb3b388dca2b0fd1edcf31fb31cd /coverage/python.py
parent1087f173f877c66872b0d993feb0860560def466 (diff)
downloadpython-coveragepy-git-08ec70fe8acbd5864b3c8c3dcc4c65c38afeeff8.tar.gz
perf: speed up python tracer with frame.f_trace_lines = False (#1381)
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.
Diffstat (limited to 'coverage/python.py')
0 files changed, 0 insertions, 0 deletions