_PyObject_DebugDumpStats: renamed to _PyObject_DebugMallocStats.
Added code to call this when PYMALLOC_DEBUG is enabled, and envar PYTHONMALLOCSTATS is set, whenever a new arena is obtained and once late in the Python shutdown process.
This commit is contained in:
@@ -276,6 +276,11 @@ Py_Finalize(void)
|
||||
|
||||
PyGrammar_RemoveAccelerators(&_PyParser_Grammar);
|
||||
|
||||
#ifdef PYMALLOC_DEBUG
|
||||
if (Py_GETENV("PYTHONMALLOCSTATS"))
|
||||
_PyObject_DebugMallocStats();
|
||||
#endif
|
||||
|
||||
call_ll_exitfuncs();
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
|
||||
Reference in New Issue
Block a user