[Python-checkins] peps: PEP 454: tracemalloc is not ignored by default

victor.stinner python-checkins at python.org
Thu Oct 3 16:49:46 CEST 2013


http://hg.python.org/peps/rev/8fc916912cd2
changeset:   5164:8fc916912cd2
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Oct 03 16:49:21 2013 +0200
summary:
  PEP 454: tracemalloc is not ignored by default

files:
  pep-0454.txt |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/pep-0454.txt b/pep-0454.txt
--- a/pep-0454.txt
+++ b/pep-0454.txt
@@ -72,15 +72,15 @@
 To trace most memory blocks allocated by Python, the module should be
 enabled as early as possible by setting the ``PYTHONTRACEMALLOC``
 environment variable to ``1``, or by using ``-X tracemalloc`` command
-line option. The ``tracemalloc.enable`` function can also be called to
+line option. The ``tracemalloc.enable()`` function can also be called to
 start tracing Python memory allocations.
 
 By default, a trace of an allocated memory block only stores one frame.
 Use the ``set_traceback_limit()`` function to store more frames.
 
-Python memory blocks allocated in the ``tracemalloc`` module are ignored
-by default using a filter. Use the ``clear_filters()`` function to see
-trace also these memory allocations.
+Python memory blocks allocated in the ``tracemalloc`` module are also
+traced by default. Use ``add_exclude_filter(tracemalloc.__file__)`` to
+ignore these these memory allocations.
 
 At fork, the module is automatically disabled in the child process.
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list