diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-13 02:27:53 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-13 02:27:53 +0200 |
commit | 9d8e12e98081836b919683ce6ffa7b432d1037ad (patch) | |
tree | aa69e185506ebb8a732c51832071f036a0ad5164 /Python/pythonrun.c | |
parent | ec6447cbbf5fc1bafc2197bf66cce4a272651f93 (diff) | |
parent | 30add44cbb2ec434d5e96e898c07a48a263c08fc (diff) | |
download | cpython-9d8e12e98081836b919683ce6ffa7b432d1037ad.tar.gz |
#17402: merge with 3.3.
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 |