mirror of
https://github.com/python/cpython
synced 2026-09-29 11:30:29 +03:00
Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues
This commit is contained in:
parent
69cf913ba1
commit
49526f48fc
24 changed files with 217 additions and 35 deletions
|
|
@ -1852,6 +1852,18 @@ PyMem_Free(void *p)
|
|||
PyMem_FREE(p);
|
||||
}
|
||||
|
||||
void
|
||||
_PyObject_DebugTypeStats(FILE *out)
|
||||
{
|
||||
_PyCFunction_DebugMallocStats(out);
|
||||
_PyDict_DebugMallocStats(out);
|
||||
_PyFloat_DebugMallocStats(out);
|
||||
_PyFrame_DebugMallocStats(out);
|
||||
_PyList_DebugMallocStats(out);
|
||||
_PyMethod_DebugMallocStats(out);
|
||||
_PySet_DebugMallocStats(out);
|
||||
_PyTuple_DebugMallocStats(out);
|
||||
}
|
||||
|
||||
/* These methods are used to control infinite recursion in repr, str, print,
|
||||
etc. Container objects that may recursively contain themselves,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue