-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
objgraph.by_type('file', untracked=True) #2
Comments
Thanks! This line helped me track down some massive leaky numpy arrays! However, it was initially confusing why it didn't work by default. |
I'm not sure what you mean by |
I don't think this is the best solution, but maybe something like:
for fully-qualified type names at least. |
Hm, it's an interesting idea! I'm afraid it wouldn't work: |
Ah, my mistake - I thought it could handle types as well. |
So, not all objects are tracked by the Python garbage collector, and therefore not all show up in
gc.get_objects()
. For example: file objecs don't, so objgraph.by_type('file') will always return an empty list.Implement a workaround that does
if the user asks for it.
The text was updated successfully, but these errors were encountered: