Devel::GlobalDestruction::Warn - Warn if object is at global destruction
package Foo;
use Devel::GlobalDestruction::Warn;
From command line:
$ perl -MDevel::GlobalDestruction::Warn leak.pl
Global destruction means that you didn't freed the resources previously. It might be a sight of memory leaking so it is very useful to warn if any destructor was called at global destruction.
If the PERL_DEVEL_GLOBALDESTRUCTION_WARN_VERBOSE
or PERL_DGW_VERBOSE
variable is true value, the full stack trace will be outputed.
Similar tools which detects memory leaks:
Devel::Leak::Object, Devel::LeakGuard::Object.
Some tools which help to prevent memory leaks:
Resource::Dispose, Object::Destroyer.
If you find the bug or want to implement new features, please report it at https://github.com/dex4er/perl-Devel-GlobalDestruction-Warn/issues
The code repository is available at http://github.com/dex4er/perl-Devel-GlobalDestruction-Warn
Piotr Roszatycki dexter@cpan.org
Copyright (c) 2012 Piotr Roszatycki dexter@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.