summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tracemalloc.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-4/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-29845: Mark tests that use _testcapi as CPython-only (#711)Serhiy Storchaka2017-03-191-0/+1
|
* Merge doc and comment fixes from 3.5Martin Panter2016-04-191-1/+1
|\
| * Fix spelling (inital), grammar (may translates) in documentation, commentsMartin Panter2016-04-191-1/+1
| |
* | Issue #26588: remove debug traces from _tracemalloc.Victor Stinner2016-03-221-10/+0
| |
* | Issue #26588: add debug tracesVictor Stinner2016-03-221-0/+10
| | | | | | | | Try to debug random failure on buildbots.
* | Add C functions _PyTraceMalloc_Track()Victor Stinner2016-03-221-0/+115
| | | | | | | | | | | | | | | | Issue #26530: * Add C functions _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() to track memory blocks using the tracemalloc module. * Add _PyTraceMalloc_GetTraceback() to get the traceback of an object.
* | tracemalloc now supports domainsVictor Stinner2016-03-221-27/+77
|/ | | | | | | | | | | | | | | | | 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
* Issue #23731: Fix tracemalloc test on Windows.Zachary Ware2015-05-131-2/+3
| | | | 'a.pyo' can no longer match 'a.py', so 'a.PYO' can't either.
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-3/+4
| | | | Patch by Christie Wilson.
* Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-5/+1
| | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* Skip some tests that require a subinterpreter launched with -E or -I when theGregory P. Smith2015-02-041-1/+3
|\ | | | | | | | | | | | | | | interpreter under test is being run in an environment that requires the use of environment variables such as PYTHONHOME in order to function at all. Adds a test.script_helper.interpreter_requires_environment() function to be used with @unittest.skipIf on stdlib test methods requiring this.
| * Skip some tests that require a subinterpreter launched with -E or -I when theGregory P. Smith2015-02-041-1/+3
|/ | | | | | | | interpreter under test is being run in an environment that requires the use of environment variables such as PYTHONHOME in order to function at all. Adds a private test.script_helper._interpreter_requires_environment() function to be used with @unittest.skipIf on stdlib test methods requiring this.
* Break up TestCommandLine.test_env_var into four distinct tests.Gregory P. Smith2015-01-221-3/+5
|
* Issue #21639: Add a test to check that PyMem_Malloc(0) with tracemalloc enabledVictor Stinner2014-06-021-0/+6
| | | | does not crash.
* tracemalloc: filter_traces() raises a TypeError if filters is not an iterableVictor Stinner2014-03-101-0/+2
|
* Issue #20616: Add a format() method to tracemalloc.Traceback.Victor Stinner2014-02-161-0/+20
|
* tracemalloc: Fix slicing traces and fix slicing a traceback.Victor Stinner2014-02-011-2/+8
|
* Closes #19786: tracemalloc, remove the arbitrary limit of 100 framesVictor Stinner2013-11-271-6/+6
| | | | | | | | The limit is now 178,956,969 on 64 bit (it is greater on 32 bit because structures are smaller). Use int instead of Py_ssize_t to store the number of frames to have smaller traceback_t objects.
* Close #19798: replace "maximum" term with "peak" in get_traced_memory()Victor Stinner2013-11-271-7/+7
| | | | documentation. Use also the term "current" for the current size.
* Cleanup test_tracemalloc.py. Patch written by Vajrasky Kok.Victor Stinner2013-11-251-4/+2
|
* Issue #18874: Remove tracemalloc.set_traceback_limit()Victor Stinner2013-11-231-12/+9
| | | | tracemalloc.start() now has an option nframe parameter
* Issue #18874: Implement the PEP 454 (tracemalloc)Victor Stinner2013-11-231-0/+797