Devel::...t::State(3)
π Devel::LeakGuard::Object::State β the perl(3) page but make it cute π
okay bestie, welcome to the User Contributed Perl Documentation section 3 β¨ this one is literally about catching object leaks, and it's called Devel::LeakGuard::Object::State. it's giving scoped. it's giving leak-checking. it's giving main character energy π«Ά
π NAME π
Devel::LeakGuard::Object::State β scoped object leak checking π¦
no cap, that's the whole name. object leak checking, but scoped, like with a lil start and a lil end. obsessed π
β VERSION β
this doc describes Devel::LeakGuard::Object::State version 0.08 β so you know exactly which era of slay we're in β¨
πΈ SYNOPSIS πΈ
here's the vibe, copy it, live it:
use Devel::LeakGuard::Object::State;
# Later
my $leakstate = Devel::LeakGuard::Object::State->new(
on_leak => 'die'
);
My::Thing->leaky();
$leakstate->done;
like, you make the state object, you run whatever messy code you're suspicious about, then you hit done and it tells you if stuff leaked π iconic workflow fr fr
π DESCRIPTION π
so a Devel::LeakGuard::Object::State captures the current leakstate of object allocations inside your program. think of it as a lil polaroid of what's allocated rn πΈ
then, when you call done, it compares that saved allocation leakstate against the current leakstate and reports any discrepancies</> π if nothing changed, great, slay. if things drifted? it tells you. periodt.
β¨ INTERFACE β¨
π§ new
create a brand new Devel::LeakGuard::Object::State π you can pass it a bunch of options, bestie. and like, the full list of options? it lives over in leakguard in Devel::LeakGuard::Object β go peek there for the whole menu π
π¦ done
call done at the end of the chunk of code you're leak-checking, okay? that's the moment of truth π
if it detects allocation imbalances, the action taken depends entirely on the options you passed to new. and by default? a warning is displayed π that's it, that's the default, no drama, just a warning.
π AUTHOR π
andy armstrong, <andy@hexten.net> β ty for your service king π«Άβ¨
π LICENCE AND COPYRIGHT π
copyright (c) 2009-2015, 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 π
π heads up bestie: same terms as perl itself, so go read perlartistic if you wanna know the exact legal tea. don't just vibe-guess it π
and that's the whole page, fr fr π brought to you by perl v5.42.0, dated 2025-07-25 β love that for us, mwah πβ¨
π¦ where this page comes from
- fedora 43: perl-Devel-LeakGuard-Object 0.08-28.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms