diff options
author | Brett Cannon <brett@python.org> | 2013-03-13 11:02:29 -0700 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-03-13 11:02:29 -0700 |
commit | a76cd999193659b193fc8405151b860b5a1ac50b (patch) | |
tree | 46d01686010f446fd488b76bb16784c2a8e883c3 /Python/pythonrun.c | |
parent | b1c7e2f94382cb2297be7206fd0745b3cbe446a6 (diff) | |
parent | 147494f9fa81be41b04f6212f3f318ad0fba81f9 (diff) | |
download | cpython-a76cd999193659b193fc8405151b860b5a1ac50b.tar.gz |
merge
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 7 |
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 |