| Memory() | This class represents the current state of memory. |
| check_point() | Set a checkpoint consisting of the current objects in memory. |
| count_objects() | Return the number of objects alive. |
| new() | Set a checkpoint consisting of the current objects in memory. |
| get_all_objects() | Return a list of all live Python |
Debugging tools
Bases: object
This class represents the current state of memory.
Example: (Don’t run these with code coverage testing or else you may run out of memory!) >> m = Memory() # doctest: +ELLIPSIS Checkpointed ... objects. >> m.new() # Now look at new objects
Methods
| checkpoint() | Take a snapshot of the current state of the memory. |
| ignore(e) | Ignore the specified object. |
| new() | Return a dictionary of all new objects. |