[Pdx-pm] Recommendations for memory leak checking?

Michael G Schwern schwern at pobox.com
Tue Jul 3 13:52:53 PDT 2007


Kevin Scaldeferri wrote:
> Does anyone have a memory leak checking module they particularly  
> recommend at the moment?  My required usage demands something that  
> doesn't require that I modify my code at all.  I want to be able to  
> just load the module from the commandline when running unit tests.   
> So, just like you can run Devel::Cover on your unit tests like:
> 
> HARNESS_PERL_SWITCHES="-MDevel::Cover" make test
> 
> I would like to do the same to check for memory leaks.

Test::Memory::Cycle can check individual objects and references for memory leaks.

Otherwise there's Devel::Leak which I've never really had luck with.



More information about the Pdx-pm-list mailing list