]> granicus.if.org Git - python/commit
tracemalloc now supports domains
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 11:58:23 +0000 (12:58 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 11:58:23 +0000 (12:58 +0100)
commite492ae50e251c4fcd48bc37b1eaa4821894f1fdb
tree1893c71fe3c54ec2bb0588db5f31e43489188d49
parent58100059acb89179530036b4649f91cc679ea12b
tracemalloc now supports domains

Issue #26588:

* The _tracemalloc now supports tracing memory allocations of multiple address
  spaces (domains).
* Add domain parameter to tracemalloc_add_trace() and
  tracemalloc_remove_trace().
* tracemalloc_add_trace() now starts by removing the previous trace, if any.
* _tracemalloc._get_traces() now returns a list of (domain, size,
  traceback_frames): the domain is new.
* Add tracemalloc.DomainFilter
* tracemalloc.Filter: add an optional domain parameter to the constructor and a
  domain attribute
* Sublte change: use Py_uintptr_t rather than void* in the traces key.
* Add tracemalloc_config.use_domain, currently hardcoded to 1
Doc/library/tracemalloc.rst
Lib/test/test_tracemalloc.py
Lib/tracemalloc.py
Misc/NEWS
Modules/_tracemalloc.c