[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-17 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +11935
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-17 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

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.

--
components: Interpreter Core
messages: 335787
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Allow gc.getobjects to return the objects tracked by a specific 
generation
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-17 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +nascheme

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-17 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-22 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 175421b58cc97a2555e474f479f30a6c5d2250b0 by Inada Naoki (Pablo 
Galindo) in branch 'master':
bpo-36016: Add generation option to gc.getobjects() (GH-11909)
https://github.com/python/cpython/commit/175421b58cc97a2555e474f479f30a6c5d2250b0


--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36016] Allow gc.getobjects to return the objects tracked by a specific generation

2019-02-23 Thread Inada Naoki


Change by Inada Naoki :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com