ports

devel/p5-Devel-Leak-Object

p5-Devel-Leak-Object-1.01 – finding memory leaks in perl objects

Description

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.

Of particular interest is 
use Devel::Leak::Object qw{ GLOBAL_bless };

which overrides CORE::bless to give a full tally of all objects at END {}

WWW: http://search.cpan.org/dist/Devel-Leak-Object/

Categories:
devel perl5

Library dependencies

None

Build dependencies

None

Run dependencies

None