Perl::SVCount - Get global count of allocated SVs
my $count = sv_count(); ... # some code here say "Allocated " . (sv_count() - $count) . " more SVs";
This module allows to access perl's internal global counters of allocated SVs and objects. This might be useful for quickly detecting memory leaks.
sv_count() returns how many SVs (scalar values) are currently allocated.
sv_count()
sv_objcount() returns how many blessed SVs (pbjects) are currently allocated.
sv_objcount()
Copyright (c) 2012 Rafael Garcia-Suarez. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install Perl::SVCount, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::SVCount
CPAN shell
perl -MCPAN -e shell install Perl::SVCount
For more information on module installation, please visit the detailed CPAN module installation guide.