add callback for extra label information

Bug #558914 reported by Thouis Jones on 2010-04-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

We're using objgraph to detect when we're holding onto numpy arrays for too long. It's useful to report extra information for the arrays (i.e., dimensions and base type). The attached patch adds a callback for adding extra label information.

Thouis Jones (thouis) wrote :
Thouis Jones (thouis) wrote :
Marius Gedminas (mgedmin) wrote :

I like it!

I think I'd prefer it if extra_info defaulted to None rather than a lambda, but it's not a big deal.

Changed in objgraph:
status: New → Confirmed
importance: Undecided → Wishlist
Changed in objgraph:
status: Confirmed → Fix Committed
Changed in objgraph:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers