summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-12-14 20:20:07 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2012-12-14 20:20:07 +0200
commita8a775c5161d12a9d21569743f13a30ab3946d1c (patch)
tree08480d953d58e6a09caa9c5ad8e1b281c577ac59 /Python/pythonrun.c
parent5053cae50d42238871c49371a328d7686f7eb13d (diff)
parent13321a29888234527e6ac1b798856a3ac47fcbd2 (diff)
downloadcpython-a8a775c5161d12a9d21569743f13a30ab3946d1c.tar.gz
#16683: merge with 3.3.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c7
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