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).
H
Huon Wilson committed
8b62644831443e400215eeb822c921f4f06c8977
Parent: bfaf527
Committed by GitHub <noreply@github.com>
on 5/22/2020, 2:18:51 PM