summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorHuon Wilson <wilson.huon@gmail.com>2020-05-23 00:18:51 +1000
committerGitHub <noreply@github.com>2020-05-22 16:18:51 +0200
commit8b62644831443e400215eeb822c921f4f06c8977 (patch)
tree82fe45a062677d792c2868ad72ecf75539c71c37 /Python/errors.c
parentbfaf5275ad9c0e8fa3935e6d651628c50e3c5c2d (diff)
downloadcpython-git-8b62644831443e400215eeb822c921f4f06c8977.tar.gz
bpo-40630: Add tracemalloc.reset_peak (GH-20102)
The reset_peak function sets the peak memory size to the current size, representing a resetting of that metric. This allows for recording the peak of specific sections of code, ignoring other code that may have had a higher peak (since the most recent `tracemalloc.start()` or tracemalloc.clear_traces()` call).
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions