From 0e871188e8cd9a4e41be7c734e250bfce2d92d56 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 13 Apr 2002 08:29:14 +0000 Subject: _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. --- Python/pythonrun.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index f0727d3f5b..0ca1f42c6c 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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 -- cgit v1.2.1