mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +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
|
|
@ -1133,6 +1133,16 @@ PySet_Fini(void)
|
|||
Py_CLEAR(emptyfrozenset);
|
||||
}
|
||||
|
||||
/* Print summary info about the state of the optimized allocator */
|
||||
void
|
||||
_PySet_DebugMallocStats(FILE *out)
|
||||
{
|
||||
_PyDebugAllocatorStats(out,
|
||||
"free PySetObject",
|
||||
numfree, sizeof(PySetObject));
|
||||
}
|
||||
|
||||
|
||||
static PyObject *
|
||||
set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue