add callback for extra label information

Bug #558914 reported by Thouis Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
objgraph
Fix Released
Wishlist
Unassigned

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.

Revision history for this message
Thouis Jones (thouis) wrote :
Revision history for this message
Thouis Jones (thouis) wrote :
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.