This module provides some functions and classes to record and report references to live object instances.
If you want live objects for a particular class to be tracked, you only have to subclass from object_ref (instead of object).
About performance: This library has a minimal performance impact when enabled, and no performance penalty at all when disabled (as object_ref becomes just an alias to object in that case).
Class | object_ref |
Inherit from this class to a keep a record of live instances |
Function | get_oldest |
Get the oldest object for a specific class name |
Function | iter_all |
Iterate over all objects of the same class by its class name |
Function | print_live_refs |
Print tracked objects |
Variable | live_refs |
Undocumented |
Variable | NoneType |
Undocumented |
Function | format_live_refs |
Return a tabular representation of tracked objects |