diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-05-02 19:51:14 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-05-02 19:51:14 (GMT) |
commit | 951919f558c1879ac6bba955977bb586c046c633 (patch) | |
tree | 9040e597428978cfc938afcefb9aac6f5b5f7946 | |
parent | b0153cf7ac25d8c3430148b4987c1e82fc8e9132 (diff) | |
download | cpython-951919f558c1879ac6bba955977bb586c046c633.zip cpython-951919f558c1879ac6bba955977bb586c046c633.tar.gz cpython-951919f558c1879ac6bba955977bb586c046c633.tar.bz2 |
Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS.
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Modules/gcmodule.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -31,6 +31,9 @@ Core and Builtins Library ------- +- Issue #4687: Fix accuracy of garbage collection runtimes displayed with + gc.DEBUG_STATS. + - Issue #7192: webbrowser.get("firefox") now wors on Mac OS X, as does webbrowser.get("safari"). diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 6c323ed..fd33996 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -837,13 +837,13 @@ collect(int generation) } if (debug & DEBUG_STATS) { - t1 = get_time(); PySys_WriteStderr("gc: collecting generation %d...\n", generation); PySys_WriteStderr("gc: objects in each generation:"); for (i = 0; i < NUM_GENERATIONS; i++) PySys_WriteStderr(" %" PY_FORMAT_SIZE_T "d", gc_list_size(GEN_HEAD(i))); + t1 = get_time(); PySys_WriteStderr("\n"); } |