You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-02-23.11:50:17.660>created_at=<Date2019-02-17.20:20:35.053>labels= ['interpreter-core', '3.8']
title='Allow gc.getobjects to return the objects tracked by a specific generation'updated_at=<Date2019-02-23.11:50:17.660>user='https://github.com/pablogsal'
gc.get_objects() return all the objects tracked by the garbage collector. This is useful, but right now there is no way of knowing in which generation each object is currently on. This information can be beneficial to understand better the state of the garbage collector in a particular moment in time.
This will allow knowing what are the oldest object tracked by the collector, gathering more fine-grained statistics about how generations are filled, better debugging and better insights about the internal structure of the generations.
To allow this, I propose a new optional parameter to gc.get_objects, allowing the user to specify the generation to get the objects from.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: