]> granicus.if.org Git - python/commit
bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.format (#4534)
authorJesse-Bakker <jessebakker00@gmail.com>
Wed, 29 Nov 2017 23:05:07 +0000 (00:05 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 29 Nov 2017 23:05:07 +0000 (00:05 +0100)
commit706e10b186992e086e661a62d2c8ec9588525b31
tree6ef28e2e18a1183757d3a31236c2b5e8b4434254
parent859f7ce7a49f8bd6309748c05e460c10f6a433ed
bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.format (#4534)

* Add most_recent_first parameter to tracemalloc.Traceback.format to allow
   reversing the order of the frames in the output
* Reversed default sorting of tracemalloc.Traceback frames
* Allowed negative limit, truncating from the other side.
Doc/library/tracemalloc.rst
Doc/whatsnew/3.7.rst
Lib/test/test_tracemalloc.py
Lib/test/test_warnings/__init__.py
Lib/tracemalloc.py
Lib/warnings.py
Misc/NEWS.d/next/Library/2017-11-24-00-59-12.bpo-32121.ePbmwC.rst [new file with mode: 0644]