New submission from Antoine Pitrou <pit...@free.fr>: With gc.DEBUG_STATS, each GC collection displays the elapsed time. Unfortunately, this elapsed time includes the debug overhead itself, most notable the calls to gc_list_size() which can be quite expensive with lots of objects in the older generation. Consequently, collections of generation 0 will incorrectly appear as very expensive, while in non-debug mode they are very cheap.
Here is a patch to get a more useful output, by not including the time taken in gc_list_size(). ---------- components: Extension Modules files: gc_stats_fix.patch keywords: patch messages: 77993 nosy: pitrou priority: normal severity: normal stage: patch review status: open title: GC stats not accurate because of debug overhead type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file12385/gc_stats_fix.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4687> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com