Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How do I find the memory used by a particular hash (NOT including perl itself)?by QwertyD (Pilgrim) |
on Apr 12, 2004 at 21:36 UTC ( [id://344539]=note: print w/replies, xml ) | Need Help?? |
Use the Devel::Size module. For example, to determine the amount of memory in bytes used by a hash named %hash:
If the hash contains any references to other variables, the memory those variables use will be added as well.
In Section
Seekers of Perl Wisdom
|
|