Classes | |
class | Foo |
Functions | |
def | compare_before_after |
def | dump_back_reference_graph |
def | follow_back |
Variables | |
tuple | f = Foo() |
list | l1 = [] |
list | l2 = [l1] |
list | l3 = [l1, l2] |
list | l4 = [l3] |
tuple | wr = weakref.ref(f) |
def multi_interface_roam::gcdebug::compare_before_after | ( | before, | ||
after | ||||
) |
Handy function to compare live objects before and after some operation, to debug why memory is leaking.
Definition at line 29 of file gcdebug.py.
def multi_interface_roam::gcdebug::dump_back_reference_graph | ( | obj, | ||
maxdepth | ||||
) |
Definition at line 39 of file gcdebug.py.
def multi_interface_roam::gcdebug::follow_back | ( | a, | ||
n | ||||
) |
Handy function for seeing why an object is still live by walking back through its referrers.
Definition at line 6 of file gcdebug.py.
tuple multi_interface_roam::gcdebug::f = Foo() |
Definition at line 148 of file gcdebug.py.
list multi_interface_roam::gcdebug::l1 = [] |
Definition at line 140 of file gcdebug.py.
list multi_interface_roam::gcdebug::l2 = [l1] |
Definition at line 141 of file gcdebug.py.
list multi_interface_roam::gcdebug::l3 = [l1, l2] |
Definition at line 143 of file gcdebug.py.
list multi_interface_roam::gcdebug::l4 = [l3] |
Definition at line 144 of file gcdebug.py.
tuple multi_interface_roam::gcdebug::wr = weakref.ref(f) |
Definition at line 151 of file gcdebug.py.