• Home
  • Raw
  • Download

Lines Matching refs: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)
66 .. function:: get_objects(generation=None)
69 returned. If *generation* is not None, return only the objects tracked by
70 the collector that are in that generation.
73 New *generation* parameter.
77 Return a list of three per-generation dictionaries containing collection
82 * ``collections`` is the number of times this generation was collected;
85 generation;
89 list) inside this generation.
101 generation (generation ``0``). If an object survives a collection it is moved
102 into the next older generation. Since generation ``2`` is the oldest
103 generation, objects in that generation remain there after a collection. In
107 starts. Initially only generation ``0`` is examined. If generation ``0`` has
108 been examined more than *threshold1* times since generation ``1`` has been
109 examined, then generation ``1`` is examined as well. Similarly, *threshold2*
110 controls the number of collections of generation ``1`` before collecting
111 generation ``2``.
182 Freeze all the objects tracked by gc - move them to a permanent generation
194 Unfreeze the objects in the permanent generation, put them back into the
195 oldest generation.
202 Return the number of objects in the permanent generation.
245 "generation": The oldest generation being collected.