mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Issue #18874: allow to call tracemalloc.Snapshot.statistics(cumulative=True)
with traceback_limit=1
This commit is contained in:
parent
00773df9f3
commit
8e3708d88b
2 changed files with 1 additions and 6 deletions
|
|
@ -479,8 +479,7 @@ Snapshot
|
|||
If *cumulative* is ``True``, cumulate size and count of memory blocks of
|
||||
all frames of the traceback of a trace, not only the most recent frame.
|
||||
The cumulative mode can only be used with *group_by* equals to
|
||||
``'filename'`` and ``'lineno'`` and :attr:`traceback_limit` greater than
|
||||
``1``.
|
||||
``'filename'`` and ``'lineno'``.
|
||||
|
||||
The result is sorted from the biggest to the smallest by:
|
||||
:attr:`Statistic.size`, :attr:`Statistic.count` and then by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue