[tpm] Tracking memory usage in perl - how much memory used by a perl variable/hash/array?

J. Bobby Lopez jbl at jbldata.com
Thu Oct 1 09:00:49 PDT 2009


Heh, you beat me to it,

http://search.cpan.org/~tels/Devel-Size-0.71/lib/Devel/Size.pm

Looks like the ticket, though it says that increases the memory overhead of
the program significantly, so I'll have to be careful implementing it on a
memory constrained system.

On Thu, Oct 1, 2009 at 11:57 AM, Alex Beamish <talexb at gmail.com> wrote:

> On Thu, Oct 1, 2009 at 11:49 AM, J. Bobby Lopez <jbl at jbldata.com> wrote:
> > Looking around on CPAN to find a way to dump the amount of memory used by
> > any given variable - anyone familiar with how to do this?
>
> How about this?
>
>  http://search.cpan.org/~tels/Devel-Size-0.71/lib/Devel/Size.pm<http://search.cpan.org/%7Etels/Devel-Size-0.71/lib/Devel/Size.pm>
>
> I searched CPAN for Memory and this was on the third page.
>
> --
> Alex Beamish
> Toronto, Ontario
> aka talexb
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
>



-- 
J. Bobby Lopez
Web: http://jbldata.com/
Twitter: http://www.twitter.com/jbobbylopez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20091001/30b30c55/attachment-0001.html>


More information about the toronto-pm mailing list