I am proposing this to address issue #61. It is proposed as a draft as I was considering an alternative implementation.
The proposed change here adds the gc_collect_gen argument to all functions which end up calling gc.collect().
An alternative implementation would be to add a single configuration function to objgraph, eg. set_gc_collect_gen, to set a global variable in objgraph which would then be used in all calls to gc.collect().
I am assuming that this will become version 3.6.0.
I am proposing this to address issue #61. It is proposed as a draft as I was considering an alternative implementation.
The proposed change here adds the
gc_collect_gen
argument to all functions which end up callinggc.collect()
.An alternative implementation would be to add a single configuration function to
objgraph
, eg.set_gc_collect_gen
, to set a global variable inobjgraph
which would then be used in all calls togc.collect()
.I am assuming that this will become version 3.6.0.
Let me know what you think!