-
- Downloads
[3.9] bpo-40630: Add tracemalloc.reset_peak (GH-20102) (GH-20545)
* bpo-40630: Add tracemalloc.reset_peak (GH-20102, cherrypick 8b626448) 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). * Adjust docs to point to 3.9
Showing
- Doc/library/tracemalloc.rst 59 additions, 0 deletionsDoc/library/tracemalloc.rst
- Doc/whatsnew/3.9.rst 6 additions, 0 deletionsDoc/whatsnew/3.9.rst
- Lib/test/test_tracemalloc.py 24 additions, 0 deletionsLib/test/test_tracemalloc.py
- Misc/ACKS 1 addition, 0 deletionsMisc/ACKS
- Misc/NEWS.d/next/Library/2020-05-15-13-40-15.bpo-40630.YXEX_M.rst 2 additions, 0 deletions...S.d/next/Library/2020-05-15-13-40-15.bpo-40630.YXEX_M.rst
- Modules/_tracemalloc.c 25 additions, 0 deletionsModules/_tracemalloc.c
- Modules/clinic/_tracemalloc.c.h 21 additions, 1 deletionModules/clinic/_tracemalloc.c.h
Loading
Please register or sign in to comment