Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 77577:d63a80abfbec
Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues
| author | David Malcolm <dmalcolm@redhat.com> |
|---|---|
| date | Fri, 22 Jun 2012 14:55:41 -0400 |
| parents | c3616595dada |
| children | 61e6ac40c816 |
comparison
equal
deleted
inserted
replaced
| 77576:dfc7fd24983a | 77577:d63a80abfbec |
|---|---|
| 640 if (Py_GETENV("PYTHONDUMPREFS")) | 640 if (Py_GETENV("PYTHONDUMPREFS")) |
| 641 _Py_PrintReferenceAddresses(stderr); | 641 _Py_PrintReferenceAddresses(stderr); |
| 642 #endif /* Py_TRACE_REFS */ | 642 #endif /* Py_TRACE_REFS */ |
| 643 #ifdef PYMALLOC_DEBUG | 643 #ifdef PYMALLOC_DEBUG |
| 644 if (Py_GETENV("PYTHONMALLOCSTATS")) | 644 if (Py_GETENV("PYTHONMALLOCSTATS")) |
| 645 _PyObject_DebugMallocStats(); | 645 _PyObject_DebugMallocStats(stderr); |
| 646 #endif | 646 #endif |
| 647 | 647 |
| 648 call_ll_exitfuncs(); | 648 call_ll_exitfuncs(); |
| 649 } | 649 } |
| 650 | 650 |
