NAME
Test::LeakTrace - Traces memory leaks (EXPERIMENTAL)
VERSION
This document describes Test::LeakTrace version 0.01.
SYNOPSIS
use Test::LeakTrace;
# simple report
leaktrace{
# ...
};
# verbose report
leaktrace{
# ...
} -verbose;
# with callback
leaktrace{
my($ref, $file, $line) = @_;
warn "leaked $ref at $file line\n";
}
my @refs = leaked_refs{
# ...
};
my @info = leaked_info{
# ...
};
my $count = leaked_count{
# ...
};
# standard test interface
use Test::LeakTrace;
not_leaked{
# ...
} "description";
leaked_cmp_ok{
# ...
} '<', 10;
# script interface like Devel::LeakTrace
use Test::LeakTrace::Script;
# ...
$ LEAKTRACE_VERBOSE=1 perl -MTest::LeakTrace::Script script.pl
DESCRIPTION
Test::LeakTrace
traces memory leakes.
(TODO)
INTERFACE
Exported functions
- leaktrace { BLOCK }
- leaktrace { BLOCK } -verbose
- leaktrace { BLOCK } \&callback
- leaked_refs { BLOCK }
- leaked_info { BLOCK }
- leaked_count { BLOCK }
- not_leaked { BLOCK }
- leaked_cmp_ok { BLOCK }
DEPENDENCIES
Perl 5.8.1 or later.
BUGS
No bugs have been reported.
Please report any bugs or feature requests to the author.
SEE ALSO
AUTHOR
Goro Fuji <gfuji(at)cpan.org>.
LICENSE AND COPYRIGHT
Copyright (c) 2009, Goro Fuji. Some rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.