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

Alex Beamish talexb at gmail.com
Thu Oct 1 08:57:45 PDT 2009


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

I searched CPAN for Memory and this was on the third page.

-- 
Alex Beamish
Toronto, Ontario
aka talexb


More information about the toronto-pm mailing list