MODULE-SIZE(1p)
β¨ MODULE-SIZE β¨
okay so this is module-size(1p), and it lives in the User Contributed Perl Documentation corner of your man pages π
it's a lil perl script, it's adorable, and it will absolutely tell you how fat your modules are. bestie, let's go π«Ά
πΈ NAME πΈ
module-size β spit out estimated size of module code. yeah. that's it. it's giving "just vibes, but measurable" π
π SYNOPSIS π
module-size Some::Module::Name [ Other::Module ]
like. you hand it a module. it hands you a number. iconic behavior fr fr β¨
π¦ DESCRIPTION π¦
so here's the tea π β module-size reports the process size after use-ing a module. that's the whole personality.
and if you're feeling extra and pass it more than one module name? the modules get included in order, one after the other. which means you can compare stuff β for example, the incremental effect of adding other modules to an existing application π
like, "how much bigger does my app get if I drag in this one extra module?" and now you know. no cap. main character energy for real π₯
π SEE ALSO π
Memory::Usage,
(yeah there's literally one, and it's that one π§)
π LICENCE AND COPYRIGHT π
Copyright 2010 Dave O'Neill.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
so like β pick either license, both are valid, go off π
heads up bestie, the copyright notice and the license text above are the actual legal stuff, don't paraphrase those in real life, k? π
π k bye π
this lil beauty is perl v5.36.0, dated 2022-11-20, and it's MODULE-SIZE(1p) to the very end π go measure some modules, you got this, mwah πβ¨
π¦ where this page comes from
- debian bookworm: libmemory-usage-perl 0.201-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmemory-usage-perl 0.201-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmemory-usage-perl 0.201-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmemory-usage-perl 0.201-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmemory-usage-perl 0.201-4 Β· 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