Browse Source
bpo-40630: adjust tracemalloc.reset_peak docs for backport to 3.9 (GH-20546)
pull/20578/head
Huon Wilson
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
7 additions and
10 deletions
-
Doc/library/tracemalloc.rst
-
Doc/whatsnew/3.10.rst
-
Doc/whatsnew/3.9.rst
-
Misc/NEWS.d/next/Library/2020-05-15-13-40-15.bpo-40630.YXEX_M.rst
|
|
|
@ -345,7 +345,7 @@ Functions |
|
|
|
|
|
|
|
See also :func:`get_traced_memory`. |
|
|
|
|
|
|
|
.. versionadded:: 3.10 |
|
|
|
.. versionadded:: 3.9 |
|
|
|
|
|
|
|
|
|
|
|
.. function:: get_tracemalloc_memory() |
|
|
|
|
|
|
|
@ -95,13 +95,6 @@ New Modules |
|
|
|
Improved Modules |
|
|
|
================ |
|
|
|
|
|
|
|
tracemalloc |
|
|
|
----------- |
|
|
|
|
|
|
|
Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory |
|
|
|
blocks to the current size, to measure the peak of specific pieces of code. |
|
|
|
(Contributed by Huon Wilson in :issue:`40630`.) |
|
|
|
|
|
|
|
Optimizations |
|
|
|
============= |
|
|
|
|
|
|
|
|
|
|
|
@ -562,6 +562,12 @@ Previously, :attr:`sys.stderr` was block-buffered when non-interactive. Now |
|
|
|
``stderr`` defaults to always being line-buffered. |
|
|
|
(Contributed by Jendrik Seipp in :issue:`13601`.) |
|
|
|
|
|
|
|
tracemalloc |
|
|
|
----------- |
|
|
|
|
|
|
|
Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory |
|
|
|
blocks to the current size, to measure the peak of specific pieces of code. |
|
|
|
(Contributed by Huon Wilson in :issue:`40630`.) |
|
|
|
|
|
|
|
typing |
|
|
|
------ |
|
|
|
|
|
|
|
@ -1,2 +0,0 @@ |
|
|
|
Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory |
|
|
|
blocks to the current size, to measure the peak of specific pieces of code. |