summaryrefslogtreecommitdiffstats
path: root/Doc/library/tracemalloc.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-31 09:39:29 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-31 09:39:29 (GMT)
commite21a531ef10e120a94434b3d4806a8106dd6f271 (patch)
tree0b1d0245388effa5cbf130744b50af6ab6a1eb5f /Doc/library/tracemalloc.rst
parentfe98180bced16be7d62b762cc85d400f929d0885 (diff)
parenta4c8c47961305487ef6c40a6d882bb956f2c5a0b (diff)
downloadcpython-e21a531ef10e120a94434b3d4806a8106dd6f271.zip
cpython-e21a531ef10e120a94434b3d4806a8106dd6f271.tar.gz
cpython-e21a531ef10e120a94434b3d4806a8106dd6f271.tar.bz2
merge with 3.4
Diffstat (limited to 'Doc/library/tracemalloc.rst')
-rw-r--r--Doc/library/tracemalloc.rst28
1 files changed, 14 insertions, 14 deletions
diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst
index f1e2602..ee4e629 100644
--- a/Doc/library/tracemalloc.rst
+++ b/Doc/library/tracemalloc.rst
@@ -27,10 +27,10 @@ frame (1 frame). To store 25 frames at startup: set the
Examples
-========
+--------
Display the top 10
-------------------
+^^^^^^^^^^^^^^^^^^
Display the 10 files allocating the most memory::
@@ -70,7 +70,7 @@ See :meth:`Snapshot.statistics` for more options.
Compute differences
--------------------
+^^^^^^^^^^^^^^^^^^^
Take two snapshots and display the differences::
@@ -114,7 +114,7 @@ the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the
Get the traceback of a memory block
------------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Code to display the traceback of the biggest memory block::
@@ -179,7 +179,7 @@ loaded.
Pretty top
-----------
+^^^^^^^^^^
Code to display the 10 lines allocating the most memory with a pretty output,
ignoring ``<frozen importlib._bootstrap>`` and ``<unknown>`` files::
@@ -249,10 +249,10 @@ See :meth:`Snapshot.statistics` for more options.
API
-===
+---
Functions
----------
+^^^^^^^^^
.. function:: clear_traces()
@@ -356,7 +356,7 @@ Functions
Filter
-------
+^^^^^^
.. class:: Filter(inclusive: bool, filename_pattern: str, lineno: int=None, all_frames: bool=False)
@@ -404,7 +404,7 @@ Filter
Frame
------
+^^^^^
.. class:: Frame
@@ -422,7 +422,7 @@ Frame
Snapshot
---------
+^^^^^^^^
.. class:: Snapshot
@@ -508,7 +508,7 @@ Snapshot
Statistic
----------
+^^^^^^^^^
.. class:: Statistic
@@ -533,7 +533,7 @@ Statistic
StatisticDiff
--------------
+^^^^^^^^^^^^^
.. class:: StatisticDiff
@@ -572,7 +572,7 @@ StatisticDiff
Trace
------
+^^^^^
.. class:: Trace
@@ -592,7 +592,7 @@ Trace
Traceback
----------
+^^^^^^^^^
.. class:: Traceback