Lines Matching full:generation

41 .. function:: collect(generation=2)
43 With no arguments, run a full collection. The optional argument *generation*
44 may be an integer specifying which generation to collect (from 0 to 2). A
45 :exc:`ValueError` is raised if the generation number is invalid. The number of
49 whenever a full collection or collection of the highest generation (2)
69 .. function:: get_objects(generation=None)
72 returned. If *generation* is not None, return only the objects tracked by
73 the collector that are in that generation.
76 New *generation* parameter.
78 .. audit-event:: gc.get_objects generation gc.get_objects
82 Return a list of three per-generation dictionaries containing collection
87 * ``collections`` is the number of times this generation was collected;
90 generation;
94 list) inside this generation.
106 generation (generation ``0``). If an object survives a collection it is moved
107 into the next older generation. Since generation ``2`` is the oldest
108 generation, objects in that generation remain there after a collection. In
112 starts. Initially only generation ``0`` is examined. If generation ``0`` has
113 been examined more than *threshold1* times since generation ``1`` has been
114 examined, then generation ``1`` is examined as well.
115 With the third generation, things are a bit more complicated,
116 …see `Collecting the oldest generation <https://devguide.python.org/garbage_collector/#collecting-t…
213 permanent generation and ignore them in all the future collections.
229 Unfreeze the objects in the permanent generation, put them back into the
230 oldest generation.
237 Return the number of objects in the permanent generation.
280 "generation": The oldest generation being collected.