mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
_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:
parent
b7ba743312
commit
0e871188e8
3 changed files with 14 additions and 5 deletions
|
@ -97,7 +97,7 @@ DL_IMPORT(void *) _PyObject_DebugRealloc(void *p, size_t nbytes);
|
|||
DL_IMPORT(void) _PyObject_DebugFree(void *p);
|
||||
DL_IMPORT(void) _PyObject_DebugDumpAddress(const void *p);
|
||||
DL_IMPORT(void) _PyObject_DebugCheckAddress(const void *p);
|
||||
DL_IMPORT(void) _PyObject_DebugDumpStats(void);
|
||||
DL_IMPORT(void) _PyObject_DebugMallocStats(void);
|
||||
#define PyObject_MALLOC _PyObject_DebugMalloc
|
||||
#define PyObject_Malloc _PyObject_DebugMalloc
|
||||
#define PyObject_REALLOC _PyObject_DebugRealloc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue