./devel/p5-Devel-Leak-Object, perl module to detect leaks of objects

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2010Q2, Version: 1.00, Package name: p5-Devel-Leak-Object-1.00, Maintainer: pkgsrc-users

This module provides tracking of objects, for the purpose of detecting
memory leaks due to circular references or innappropriate caching schemes.

Object tracking can be enabled on a per object basis. Any objects thus
tracked are remembered until DESTROYed; details of any objects left are
printed out to stderr at END-time.

use Devel::Leak::Object qw(GLOBAL_bless);

This form overloads bless to track construction and destruction of all
objects. As an alternative, by importing bless, you can just track the
objects of the caller code that is doing the use.

If you use GLOBAL_bless to overload the bless function, please note that it
will ONLY apply to bless for modules loaded AFTER Devel::Leak::Object has
enabled the hook.


Master sites: (Expand)

SHA1: 762fb0c4f456334e4886507f77af6f507d269546
RMD160: 1d9027f52b0722a9d2313ab2b30630d9b4c89971
Filesize: 28.074 KB

Version history: (Expand)