summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-03-16 02:52:24 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2013-03-16 02:52:24 -0400
commitddf47eb8c61ed4d3ee3ec680336b016b627e53dd (patch)
tree7c238ff29a60d4957e6e26d336a6163f061d057d /Python/pythonrun.c
parentf612c8fa7c1d6e244200a3eff0a82abcca4cca82 (diff)
parentcdfac6f16bec10dcb4885fd7f74ae80884d0cdf1 (diff)
downloadcpython-ddf47eb8c61ed4d3ee3ec680336b016b627e53dd.tar.gz
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