[Pdx-pm] memory leak

Andy Lester andy at petdance.com
Mon Apr 18 12:19:42 PDT 2005

On Mon, Apr 18, 2005 at 12:13:07PM -0700, Mark Deason (mdeason360 at yahoo.com) wrote:
> I have a 200-ish line perl script that is leaking
> memory.  Is there an easy way to list the memory
> consumed for each variable?  More specifically, can I
> get a list of all variables including locals (not
> including modules) which I can then use to drive the
> first request?

Look at Devel::Cycle as a tool to find circular references.  You can
check these as part of your test suite w/Test::Memory::Cycle, too.


Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance

More information about the Pdx-pm-list mailing list