]> granicus.if.org Git - python/commit
bpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545)
authorJulien Danjou <julien@danjou.info>
Tue, 15 Oct 2019 12:00:16 +0000 (14:00 +0200)
committerVictor Stinner <vstinner@python.org>
Tue, 15 Oct 2019 12:00:16 +0000 (14:00 +0200)
commit8d59eb1b66c51b2b918da9881c57d07d08df43b7
tree7833df22bb4e8cd3779dfa4a7d5ee2a206ec0b90
parentf3ef06a7cb347ab7bd3cc2b0b3dcebe4f9ff36f9
bpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545)

Add a total_nframe field to the traces collected by the tracemalloc module.
This field indicates the original number of frames before it was truncated.
Doc/library/tracemalloc.rst
Lib/test/test_tracemalloc.py
Lib/tracemalloc.py
Misc/NEWS.d/next/Library/2019-08-27-10-30-44.bpo-37961.4nm0zZ.rst [new file with mode: 0644]
Modules/_tracemalloc.c