Skip to content

Add reference counts to ObjectGraph #58

@mdickinson

Description

@mdickinson

When detecting errors caused by reference counting bugs (e.g., in 3rd party extension modules), it's useful to be able to compare the reference count of an object in a snapshot with the expected reference count based on the number of edges into that object: a mismatch may be evidence of a reference counting bug.

For this, it would be useful to be able to annotate the objects in an ObjectGraph with the result of calling sys.getrefcount on that object, suitably modified for local references.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions