Cataly...hecker(3pm)
β¨ CatalystX::LeakChecker β¨ (that's the Cataly...hecker(3pm) page bestie π)
okay so real talk β this is CatalystX::LeakChecker, a Perl module that hunts down memory leaks in your Catalyst apps, and honestly? iconic behaviour. π΅οΈβοΈβ¨
πΈ NAME πΈ
CatalystX::LeakChecker β debug memory leaks in Catalyst applications, no cap π
π VERSION π
version 0.06 β yeah she's a little vintage but she WORKS π«Ά
π¦ SYNOPSIS π¦
here's the whole vibe, copy it exactly bestie:
package MyApp;
use namespace::autoclean;
extends 'Catalyst';
with 'CatalystX::LeakChecker';
__PACKAGE__->setup;
like that's it. that's the whole setup. slay. π
π DESCRIPTION π
ngl, it is SO easy to create memory leaks in Catalyst applications, and the way they're often impossible to find?? π genuinely the worst feeling. This module tries to help you find them by automatically checking for common causes of leaks. main character energy fr fr. π₯
BIG WARNING bestie: this module is intended for debugging only. The original author suggests not enabling it in a production environment. So do NOT ship this to prod, okay?? I'm serious. π
β¨ METHODS β¨
π found_leaks(@leaks)
If any leaks were found, this method gets called at the end of each request. A list of leaks gets passed to it. Then it logs a debug message like this:
[debug] Circular reference detected:
+------------------------------------------------------+-----------------+
| $ctx->{stash}->{ctx} |
'------------------------------------------------------+-----------------'
she's also able to find leaks in code references π and a debug message for that might look like this:
[debug] Circular reference detected:
+------------------------------------------------------+-----------------+
| $a = $ctx->{stash}->{leak_closure}; |
| code reference $a deparses to: sub { |
| package TestApp::Controller::Affe; |
| use warnings; |
| use strict 'refs'; |
| $ctx->response->body('from leaky closure'); |
| }; |
| ${ $ctx } |
'------------------------------------------------------+-----------------'
look at that deparse. she's telling on herself. π
Override this method if you want leaks to be reported differently β go off, customise your little heart out. π¨
π AUTHORS π
Florian Ragwitz <rafl@debian.org> and Tomas Doran <bobtfish@bobtfish.net> β legends, both of them. π«‘
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page bestie!! π this was generated for perl v5.36.0 on 2022-12-06, and the manual is Cataly...hecker(3pm) β mwah, stay leak-free, ily, bye!! π
β¨π¦πΈπ
π¦ where this page comes from
- debian bookworm: libcatalystx-leakchecker-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalystx-leakchecker-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalystx-leakchecker-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalystx-leakchecker-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalystx-leakchecker-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms