Rechercher une page de manuel
Devel::LeakGuard::Object::State.3pm
Langue: en
Version: 2010-04-30 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Devel::LeakGuard::Object::State - Scoped object leak checkingVERSION
This document describes Devel::LeakGuard::Object::State version 0.06SYNOPSIS
use Devel::LeakGuard::Object::State; # Later my $leakstate = Devel::LeakGuard::Object::State->new( on_leak => 'die' ); My::Thing->leaky(); $leakstate->done;
DESCRIPTION
A "Devel::LeakGuard::Object::State" captures the current leakstate of object allocations within a program. When ``done'' is called the saved allocation leakstate is compared with the current leakstate and any discrepancies are reported.INTERFACE
new
Create a new "Devel::LeakGuard::Object::State". A number of options may be supplied. To see the full list refer to ``leakguard'' in Devel::LeakGuard::Object.done
Call "done" at the end of the area of code to be leak-checked. If allocation imbalances are detected the action taken depends on the options passed to ``new''. By default a warning is displayed.AUTHOR
Andy Armstrong "<andy@hexten.net>"LICENCE AND COPYRIGHT
Copyright (c) 2009, Andy Armstrong "<andy@hexten.net>".This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre