File: garbagegraph.rst

package info (click to toggle)
pympler 1.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,196 kB
  • sloc: python: 9,816; javascript: 2,775; makefile: 17
file content (39 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.. _garbage:
   
====================
pympler.garbagegraph
====================

Garbage occurs if objects refer too each other in a circular fashion. Such
reference cycles cannot be freed automatically and must be collected by the
garbage collector. While it is sometimes hard to avoid creating reference
cycles, preventing such cycles saves garbage collection time and limits the
lifetime of objects. Moreover, some objects cannot be collected by the garbage
collector.

Reference cycles can be visualized with the help of 
`graphviz <http://www.graphviz.org>`_.

.. automodule:: pympler.garbagegraph

Classes
-------

.. autoclass:: GarbageGraph

   .. automethod:: __init__

   .. automethod:: render

   .. automethod:: split

   .. automethod:: write_graph

   .. automethod:: print_stats

Functions
---------

.. autofunction:: start_debug_garbage

.. autofunction:: end_debug_garbage