summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMartin v. Loewis <martin@v.loewis.de>2013-03-24 22:12:19 +0100
committerMartin v. Loewis <martin@v.loewis.de>2013-03-24 22:12:19 +0100
commit650458ab36c29cfd3906f4940eabd01b8b523b5c (patch)
tree4463730700404c235bb38a2479a382a4d1c71653 /Python/pythonrun.c
parent29a7032a9fa9327c158d9d09a8d7a8942c4f87d5 (diff)
parente298eef2c67880b4773a6678310b066406385824 (diff)
downloadcpython-650458ab36c29cfd3906f4940eabd01b8b523b5c.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