summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-25 08:40:27 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-25 08:40:27 (GMT)
commitd2736affa1707b0f0d90cc5440d241a52a2704db (patch)
tree63a621a8e40377c255eca572cdbefafcfdeb55ea
parent4fbefdb21727ea9735e9548b74c5bc9a1da9f78d (diff)
downloadcpython-d2736affa1707b0f0d90cc5440d241a52a2704db.zip
cpython-d2736affa1707b0f0d90cc5440d241a52a2704db.tar.gz
cpython-d2736affa1707b0f0d90cc5440d241a52a2704db.tar.bz2
Mention the new tracemalloc module in the What's New in Python 3.4 document
-rw-r--r--Doc/whatsnew/3.4.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index af3c35f..9882fdd 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -97,6 +97,7 @@ New library modules:
* :mod:`selectors`: High-level and efficient I/O multiplexing, built upon the
:mod:`select` module primitives.
* :mod:`statistics`: A basic numerically stable statistics library (:pep:`450`).
+* :mod:`tracemalloc`: Trace Python memory allocations (:pep:`454`).
New expected features for Python implementations:
@@ -400,6 +401,23 @@ deviation of a data series.
PEP written and implemented by Steven D'Aprano
+tracemalloc
+-----------
+
+The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to
+trace memory blocks allocated by Python. It provides the following information:
+
+* Traceback where an object was allocated
+* Statistics on allocated memory blocks per filename and per line number:
+ total size, number and average size of allocated memory blocks
+* Compute the differences between two snapshots to detect memory leaks
+
+.. seealso::
+
+ :pep:`454` - Add a new tracemalloc module to trace Python memory allocations
+ PEP written and implemented by Victor Stinner
+
+
Improved Modules
================