Commit 59c2580b authored by Georg Brandl's avatar Georg Brandl

#22613: fix heading levels in tracemalloc docs (thanks Jacques Ducasse)

parent d8001a2d
...@@ -27,10 +27,10 @@ frame (1 frame). To store 25 frames at startup: set the ...@@ -27,10 +27,10 @@ frame (1 frame). To store 25 frames at startup: set the
Examples Examples
======== --------
Display the top 10 Display the top 10
------------------ ^^^^^^^^^^^^^^^^^^
Display the 10 files allocating the most memory:: Display the 10 files allocating the most memory::
...@@ -70,7 +70,7 @@ See :meth:`Snapshot.statistics` for more options. ...@@ -70,7 +70,7 @@ See :meth:`Snapshot.statistics` for more options.
Compute differences Compute differences
------------------- ^^^^^^^^^^^^^^^^^^^
Take two snapshots and display the 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 ...@@ -114,7 +114,7 @@ the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the
Get the traceback of a memory block Get the traceback of a memory block
----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Code to display the traceback of the biggest memory block:: Code to display the traceback of the biggest memory block::
...@@ -179,7 +179,7 @@ loaded. ...@@ -179,7 +179,7 @@ loaded.
Pretty top Pretty top
---------- ^^^^^^^^^^
Code to display the 10 lines allocating the most memory with a pretty output, Code to display the 10 lines allocating the most memory with a pretty output,
ignoring ``<frozen importlib._bootstrap>`` and ``<unknown>`` files:: ignoring ``<frozen importlib._bootstrap>`` and ``<unknown>`` files::
...@@ -249,10 +249,10 @@ See :meth:`Snapshot.statistics` for more options. ...@@ -249,10 +249,10 @@ See :meth:`Snapshot.statistics` for more options.
API API
=== ---
Functions Functions
--------- ^^^^^^^^^
.. function:: clear_traces() .. function:: clear_traces()
...@@ -356,7 +356,7 @@ Functions ...@@ -356,7 +356,7 @@ Functions
Filter Filter
------ ^^^^^^
.. class:: Filter(inclusive: bool, filename_pattern: str, lineno: int=None, all_frames: bool=False) .. class:: Filter(inclusive: bool, filename_pattern: str, lineno: int=None, all_frames: bool=False)
...@@ -404,7 +404,7 @@ Filter ...@@ -404,7 +404,7 @@ Filter
Frame Frame
----- ^^^^^
.. class:: Frame .. class:: Frame
...@@ -422,7 +422,7 @@ Frame ...@@ -422,7 +422,7 @@ Frame
Snapshot Snapshot
-------- ^^^^^^^^
.. class:: Snapshot .. class:: Snapshot
...@@ -508,7 +508,7 @@ Snapshot ...@@ -508,7 +508,7 @@ Snapshot
Statistic Statistic
--------- ^^^^^^^^^
.. class:: Statistic .. class:: Statistic
...@@ -533,7 +533,7 @@ Statistic ...@@ -533,7 +533,7 @@ Statistic
StatisticDiff StatisticDiff
------------- ^^^^^^^^^^^^^
.. class:: StatisticDiff .. class:: StatisticDiff
...@@ -572,7 +572,7 @@ StatisticDiff ...@@ -572,7 +572,7 @@ StatisticDiff
Trace Trace
----- ^^^^^
.. class:: Trace .. class:: Trace
...@@ -592,7 +592,7 @@ Trace ...@@ -592,7 +592,7 @@ Trace
Traceback Traceback
--------- ^^^^^^^^^
.. class:: Traceback .. class:: Traceback
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment