commit | 8b62644831443e400215eeb822c921f4f06c8977 | [log] [tgz] |
---|---|---|
author | Huon Wilson <wilson.huon@gmail.com> | Sat May 23 00:18:51 2020 +1000 |
committer | GitHub <noreply@github.com> | Fri May 22 16:18:51 2020 +0200 |
tree | 82fe45a062677d792c2868ad72ecf75539c71c37 | |
parent | bfaf5275ad9c0e8fa3935e6d651628c50e3c5c2d [diff] |
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).