GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Devel::LeakGuard::Object::State(3) User Contributed Perl Documentation Devel::LeakGuard::Object::State(3)

Devel::LeakGuard::Object::State - Scoped object leak checking

This document describes Devel::LeakGuard::Object::State version 0.06

  use Devel::LeakGuard::Object::State;

  # Later
  my $leakstate = Devel::LeakGuard::Object::State->new(
    on_leak => 'die'
  );

  My::Thing->leaky();

  $leakstate->done;

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.

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.

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.

Andy Armstrong "<andy@hexten.net>"

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.

2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.