Skip to content

Commit

Permalink
bpo-40630: adjust tracemalloc.reset_peak docs for backport to 3.9 (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw authored Jun 1, 2020
1 parent 06e3a27 commit 39de8e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Doc/library/tracemalloc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ Functions

See also :func:`get_traced_memory`.

.. versionadded:: 3.10
.. versionadded:: 3.9


.. function:: get_tracemalloc_memory()
Expand Down
7 changes: 0 additions & 7 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=============

Expand Down
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.9.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------
Expand Down

This file was deleted.

0 comments on commit 39de8e4

Please sign in to comment.