summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2012-12-17 00:06:02 -0600
committerBrian Curtin <brian@python.org>2012-12-17 00:06:02 -0600
commit0e070375dfc1fc68be2664b7735138d7ac41108b (patch)
treeaef4a4d56e26096ad2b6a8f9eb6fe3875bddc5e1 /Python/pythonrun.c
parentd5629673813cb3f205da1c85118a09d979d40ec3 (diff)
parent0c2c68b8717b6de5904d9927b8054e47cba2bd4b (diff)
downloadcpython-0e070375dfc1fc68be2664b7735138d7ac41108b.tar.gz
Merge 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