garbage collection - Python: find which objects are marked for deletion by gc? -
let's following output gc.get_count()
gc.get_count() (2, 1, 0) what want know these 3 objects gc.get_count() counting? can id? name? size etc.? (i know threshold value , 3 stage collection in python).
you can use gc.get_objects() instead.
see python garbage collector interface documentation.
Comments
Post a Comment