NAME

Devel::Leak::Object - Detect leaks of objects

SYNOPSIS

use Devel::Leak::Object;
my $obj = Foo::Bar->new;
Devel::Leak::Object::track($obj);

DESCRIPTION

This module provides tracking of objects, against memory leaks. At a simple level, 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.

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.

BUGS

Please report bugs to http://rt.cpan.org

AUTHOR

Ivor Williams
ivorw-devel-leak-object@xemaps.com

COPYRIGHT

Copyright (C) 1994 Ivor Williams.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

perl(1).