Skip to content

Commit

Permalink
objgraph.show_backrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Apr 28, 2014
1 parent a53b7e3 commit 8a229e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/core/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _update_magic_objects(self):
refcount = sys.getrefcount(obj)-2
import objgraph
print 'backrefsfor', obj
objgraph.show_backrefs([obj], max_depth=5, filename='tmp.dot')
objgraph.show_backrefs([obj], max_depth=10, filename='tmp.dot')
with open('tmp.dot', 'r') as f:
for line in f:
print line
Expand Down

0 comments on commit 8a229e6

Please sign in to comment.