mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00: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
|
@ -117,6 +117,15 @@ PyList_Fini(void)
|
|||
PyList_ClearFreeList();
|
||||
}
|
||||
|
||||
/* Print summary info about the state of the optimized allocator */
|
||||
void
|
||||
_PyList_DebugMallocStats(FILE *out)
|
||||
{
|
||||
_PyDebugAllocatorStats(out,
|
||||
"free PyListObject",
|
||||
numfree, sizeof(PyListObject));
|
||||
}
|
||||
|
||||
PyObject *
|
||||
PyList_New(Py_ssize_t size)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue