mgedmin / objgraph

Visually explore Python object graphs
http://mg.pov.lt/objgraph/
MIT License
753 stars 72 forks source link

Issue 61: add option allowing specifying gc collect generation #63

Open 71FIL opened 2 years ago

71FIL commented 2 years ago

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.

Let me know what you think!

71FIL commented 2 years ago

No worries! Sorry to hear about the burnout issues...

I think I covered them all.

Let me know if there is anything else.