one of the objects first howeverthere is no way to know if the _del_ (method of the remaining objects in the cycle needs to perform critical operations on the object that was just destroyed get_count(returns tuple (count count count containing the number of objects currently in each generation get_debug(returns the debugging flags currently set get_objects(returns list of all objects being tracked by the garbage collector does not include the returned list get_referrers(obj obj returns list of all objects that directly refer to the objects obj obj and so on the returned list may include objects that have not yet been garbage-collected as well as partially constructed objects get_referents(obj obj returns list of objects that the objects obj obj and so on refer to for exampleif obj is containerthis would return list of the objects in the container get_threshold(returns the current collection threshold as tuple isenabled(returns true if garbage collection is enabled set_debug(flagssets the garbage-collection debugging flagswhich can be used to debug the behavior of the garbage collector flags is the bitwise or of the constants debug_statsdebug_collectabledebug_uncollectabledebug_instancesdebug_objectsdebug_savealland debug_leak the debug_leak flag is probably the most useful because it will have the collector print information useful for debugging programs with memory leaks set_threshold(threshold [threshold [threshold ]]sets the collection frequency of garbage collection objects are classified into three generationswhere generation contains the youngest objects and generation contains the oldest objects objects that survive garbage-collection step are moved to the nextoldest generation once an object reaches generation it stays in that generation threshold is the difference between the number of allocations and deallocations that must be reached before garbage collection occurs in generation threshold is the number of collections of generation that must occur before generation is scanned threshold is the number of collections that must occur in generation before generation is collected the default threshold is currently set to ( , , setting threshold to disables garbage collection lib fl ff