From f0c2aed8f8d4931d259ba808e1b4e428aee27340 Mon Sep 17 00:00:00 2001 From: Jules Kouatchou Date: Tue, 25 Apr 2023 15:18:55 -0400 Subject: Change the section (on memory tracing) title to reflect its content. --- doc/source/reference/c-api/data_memory.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/source/reference') diff --git a/doc/source/reference/c-api/data_memory.rst b/doc/source/reference/c-api/data_memory.rst index aca98289e..cab587efc 100644 --- a/doc/source/reference/c-api/data_memory.rst +++ b/doc/source/reference/c-api/data_memory.rst @@ -160,8 +160,8 @@ A better technique would be to use a ``PyCapsule`` as a base object: } ... -Memory Allocation ------------------ +Example of memory tracing with ``np.lib.tracemalloc_domain`` +------------------------------------------------------------ Note that since Python 3.6 (or newer), the builtin ``tracemalloc`` module can be used to track allocations inside NumPy. NumPy places its CPU memory allocations into the -- cgit v1.2.1