summaryrefslogtreecommitdiff
path: root/Doc/library/tracemalloc.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-06-20 17:46:36 +0200
committerGitHub <noreply@github.com>2017-06-20 17:46:36 +0200
commit5ea4c0677389ead2eee759958694cff2c65834a7 (patch)
tree90e13f3ef6da418c459de164cb7f21e9ab70a1c9 /Doc/library/tracemalloc.rst
parent26cb4657bcc9a7adffa95798ececb588dddfeadb (diff)
downloadcpython-git-5ea4c0677389ead2eee759958694cff2c65834a7.tar.gz
bpo-30054: Expose tracemalloc C API (#1236)
* Make PyTraceMalloc_Track() and PyTraceMalloc_Untrack() functions public (remove the "_" prefix) * Remove the _PyTraceMalloc_domain_t type: use directly unsigned int. * Document methods Note: methods are already tested in test_tracemalloc.
Diffstat (limited to 'Doc/library/tracemalloc.rst')
-rw-r--r--Doc/library/tracemalloc.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst
index e16566963e..048ee64aac 100644
--- a/Doc/library/tracemalloc.rst
+++ b/Doc/library/tracemalloc.rst
@@ -412,6 +412,9 @@ Filter
Address space of a memory block (``int`` or ``None``).
+ tracemalloc uses the domain ``0`` to trace memory allocations made by
+ Python. C extensions can use other domains to trace other resources.
+
.. attribute:: inclusive
If *inclusive* is ``True`` (include), only match memory blocks allocated
@@ -622,6 +625,16 @@ Trace
The :attr:`Snapshot.traces` attribute is a sequence of :class:`Trace`
instances.
+ .. versionchanged:: 3.6
+ Added the :attr:`domain` attribute.
+
+ .. attribute:: domain
+
+ Address space of a memory block (``int``). Read-only property.
+
+ tracemalloc uses the domain ``0`` to trace memory allocations made by
+ Python. C extensions can use other domains to trace other resources.
+
.. attribute:: size
Size of the memory block in bytes (``int``).