Memory::Stats - Memory Usage Consumption of your process
version 0.02
This module give you the memory usage (resident RSS), of a part of your process. It use Proc::ProcessTable and should work on all platforms supported by this module.
You can check this link to for explanation : http://blog.celogeek.com/201312/394/perl-universal-way-to-get-memory-usage-of-a-process/
use Memory::Stats; my $stats = Memory::Stats->new; $stats->start; # do something $stats->stop; say "Memory consumed : ", $stats->get_memory_usage;
Init the recording
Stop the recording
Return the last recording memory in KB
Please report any bugs or feature requests on the bugtracker website https://github.com/celogeek/perl-memory-stats/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
celogeek <me@celogeek.com>
This software is copyright (c) 2013 by celogeek <me@celogeek.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Memory::Stats, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Memory::Stats
CPAN shell
perl -MCPAN -e shell install Memory::Stats
For more information on module installation, please visit the detailed CPAN module installation guide.