# Feature or enhancement ### Proposal: During the last performance meeting, Brandt requested that the GC collection time be added to the GC callbacks. I propose to extend the information that GC provides for callbacks as follows: ``` start {'generation': 2, 'collected': 0, 'uncollectable': 0} stop {'generation': 2, 'collected': 21, 'uncollectable': 0, 'collection_time': 0.1285373} ``` We do not change anything for the `start` event. For the 'stop' event, we add `collection_time` which is the collection time in seconds. @brandtbucher Would this work for you? ### Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere ### Links to previous discussion of this feature: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-140516 <!-- /gh-linked-prs -->
Activity
sergey-miryanov commentedon Oct 25, 2025
Closing this.