summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-03-24 15:21:57 -0700
committerRaymond Hettinger <python@rcn.com>2013-03-24 15:21:57 -0700
commit579084247b8b12d2d8ec3faa98ae60e7bd5dcfab (patch)
tree30c07db6430d8d82091a73757b4194cd6d6328a7 /Python/pythonrun.c
parentbbca631b3d681c2c81534d14e9bb746c3bb7c92b (diff)
parent86b17240c2e8176ba8ef55e39bf3b7d10914d8e4 (diff)
downloadcpython-579084247b8b12d2d8ec3faa98ae60e7bd5dcfab.tar.gz
merge
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