Skip to content

Instantly share code, notes, and snippets.

@andrewcstewart
Last active December 12, 2015 04:38
Show Gist options
  • Save andrewcstewart/4715882 to your computer and use it in GitHub Desktop.
Save andrewcstewart/4715882 to your computer and use it in GitHub Desktop.
>>> x = []
>>> y = [x, [x], dict(x=x)]
>>> import objgraph
>>> objgraph.show_refs([y], filename='sample-graph.png')
Graph written to ....dot (... nodes)
Image generated as sample-graph.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment