Title: Bring back elapsed time debugging in gc.c · Issue #140358 · python/cpython · GitHub
Open Graph Title: Bring back elapsed time debugging in gc.c · Issue #140358 · python/cpython
X Title: Bring back elapsed time debugging in gc.c · Issue #140358 · python/cpython
Description: Feature or enhancement Proposal: In "GH-108362: Incremental GC implementation" (#116206), it seems to me that the elapsed time debug information disappeared. This change took effect in Python 3.14. Is it possible to get back that piece o...
Open Graph Description: Feature or enhancement Proposal: In "GH-108362: Incremental GC implementation" (#116206), it seems to me that the elapsed time debug information disappeared. This change took effect in Python 3.14....
X Description: Feature or enhancement Proposal: In "GH-108362: Incremental GC implementation" (#116206), it seems to me that the elapsed time debug information disappeared. This change took effect in Py...
Opengraph URL: https://github.com/python/cpython/issues/140358
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bring back elapsed time debugging in gc.c","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nIn \"GH-108362: Incremental GC implementation\" (#116206), it seems to me that the elapsed time debug information disappeared.\n\nThis change took effect in Python 3.14.\n\nIs it possible to get back that piece of debug information?\n\nIn Python 3.13 with `gc.DEBUG_STATS` you would get information like this:\n\n```\ngc: collecting generation 2...\ngc: objects in each generation: 1473 0 5043\ngc: objects in permanent generation: 0\ngc: done, 0 unreachable, 0 uncollectable, 0.0236s elapsed\n```\n\nwhereas in Python 3.14:\n\n```\ngc: collecting generation 2...\ngc: objects in each generation: 1394 5072 248\ngc: objects in permanent generation: 0\n```\n\nPs., I believe that it is commit 1530932 that removes the elapsed time functionality, but I might be wrong.\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on Discourse\n\n### Links to previous discussion of this feature:\n\nhttps://discuss.python.org/t/elapsed-time-debugging-in-gc-c/104396\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-140359\n* gh-140405\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/pgdr","@type":"Person","name":"pgdr"},"datePublished":"2025-10-20T09:11:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/140358/cpython/issues/140358"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:401ad713-c36f-5c09-03b7-586869a6df9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D184:C69AF:257E0:346D7:696A647F |
| html-safe-nonce | 2b0c506812ee43bfe38640524a3e8223e1da7e16c08aab278b3128ba7737807a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTg0OkM2OUFGOjI1N0UwOjM0NkQ3OjY5NkE2NDdGIiwidmlzaXRvcl9pZCI6IjYzMjk1NDYzMjE2OTc0MzQ4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd09354bb20791f7ae24d45c18f98e23fa90059932235b2705ee29d6cc3ca0c6 |
| hovercard-subject-tag | issue:3531664245 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/140358/issue_layout |
| twitter:image | https://opengraph.githubassets.com/23c5e52d5e376a42998217a52400b40c35bd0c363dff0daf8672f92b72c56ff2/python/cpython/issues/140358 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/23c5e52d5e376a42998217a52400b40c35bd0c363dff0daf8672f92b72c56ff2/python/cpython/issues/140358 |
| og:image:alt | Feature or enhancement Proposal: In "GH-108362: Incremental GC implementation" (#116206), it seems to me that the elapsed time debug information disappeared. This change took effect in Python 3.14.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pgdr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width