diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-03-13 21:35:46 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-03-13 21:35:46 -0400 |
commit | 288a85615fb91e55662427bb9f01d41118661733 (patch) | |
tree | 2062fdb5a425a6e20c452ad34b05dcc89e558857 /Python/pythonrun.c | |
parent | 6e1f43c7134a81fa559ae0958d257de28337ab6f (diff) | |
parent | 4aa19e70478b41c2bf2920124979943ba669d924 (diff) | |
download | cpython-288a85615fb91e55662427bb9f01d41118661733.tar.gz |
Merge with 3.3: Issue #17386
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index dd32017574..f0d8550773 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -38,9 +38,10 @@ #ifndef Py_REF_DEBUG #define PRINT_TOTAL_REFS() #else /* Py_REF_DEBUG */ -#define PRINT_TOTAL_REFS() fprintf(stderr, \ - "[%" PY_FORMAT_SIZE_T "d refs]\n", \ - _Py_GetRefTotal()) +#define PRINT_TOTAL_REFS() fprintf(stderr, \ + "[%" PY_FORMAT_SIZE_T "d refs, " \ + "%" PY_FORMAT_SIZE_T "d blocks]\n", \ + _Py_GetRefTotal(), _Py_GetAllocatedBlocks()) #endif #ifdef __cplusplus |