[Python-Dev] Updated PEP 454 (tracemalloc): no more metrics!

Victor Stinner victor.stinner at gmail.com
Sun Oct 27 17:26:17 CET 2013


I updated the PEP according to different comments:

* replace Snapshot.create() class method with take_snapshot() function
* get_traces() now returns a list instead of a dict (remove addresses)
* remove get_stats()
* unknown frames are now stored as ("<unknown>", 0) instead of (None, None)
* remove get_object_address()
* remove get_trace()
* remove add_inclusive_filter() and add_exclusive_filter() functions
* remove "address" key type from Snapshot.group_by()

http://www.python.org/dev/peps/pep-0454/
(not updated yet)

Remaining questions:

* do you have a better suggestion for GroupedStats.stats attribute or
GroupedStats.statistics() method: "stats" and "statistics" are too
close
* should GroupedStats.statistics() and GroupedStats.compare_to()
always sort the result to drop the sort=True parameter?
* do you prefer Snapshot.create() class method or take_snapshot()
function? There is also a Snapload.load() class method

Victor


More information about the Python-Dev mailing list