4

I am investigating garbage collection issues in a Python app. What would be the best readable option to print out all variables referencing a specific instance?

0

2 Answers 2

2

Use the inspect module. This script helps if you just want to track down reference leaks:

http://mg.pov.lt/objgraph.py http://mg.pov.lt/blog/hunting-python-memleaks http://mg.pov.lt/blog/python-object-graphs.html

Sign up to request clarification or add additional context in comments.

Comments

1

Try Finding objects' names, it prints all names that reference a given object.

1 Comment

At present, this link gives "500 Internal Server Error"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.