gc.get_stats()
Return a list of three per-generation dictionaries containing collection statistics since interpreter start. The number of keys may change in the future, but currently each dictionary will contain the following items:
-
collectionsis the number of times this generation was collected; -
collectedis the total number of objects collected inside this generation; -
uncollectableis the total number of objects which were found to be uncollectable (and were therefore moved to thegarbagelist) inside this generation.
New in version 3.4.
Please login to continue.