Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 23020:e2848618bd19 legacy-trunk
_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.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sat, 13 Apr 2002 08:29:14 +0000 |
| parents | d8bc68cb17e0 |
| children | 4f335ca3f11c |
comparison
equal
deleted
inserted
replaced
| 23018:b1ab4bc52243 | 23020:e2848618bd19 |
|---|---|
| 273 - int and float free list blocks | 273 - int and float free list blocks |
| 274 - whatever various modules and libraries allocate | 274 - whatever various modules and libraries allocate |
| 275 */ | 275 */ |
| 276 | 276 |
| 277 PyGrammar_RemoveAccelerators(&_PyParser_Grammar); | 277 PyGrammar_RemoveAccelerators(&_PyParser_Grammar); |
| 278 | |
| 279 #ifdef PYMALLOC_DEBUG | |
| 280 if (Py_GETENV("PYTHONMALLOCSTATS")) | |
| 281 _PyObject_DebugMallocStats(); | |
| 282 #endif | |
| 278 | 283 |
| 279 call_ll_exitfuncs(); | 284 call_ll_exitfuncs(); |
| 280 | 285 |
| 281 #ifdef Py_TRACE_REFS | 286 #ifdef Py_TRACE_REFS |
| 282 _Py_ResetReferences(); | 287 _Py_ResetReferences(); |
