Bugzilla::Leak - A simple memory examiner for Perl

Max Kanat-Alexander mkanat at bugzilla.org
Sun Jul 4 10:19:26 UTC 2010


	Attached (if this list supports attachments--I forget) is a file called
Leak.pm. This is a tool I've developed over the last day or so to debug
memory usage in Perl. So far it's helped me quite a bit to figure out
two serious memory-usage issues. There is a comment at the top
explaining basically how it works.

	It's more of a hack that you can hack into your code than a polished
product. It probably won't handle every situation, but I suspect that it
will work pretty well for Bugzilla code, given the sort of stuff that we
usually have in memory.

	Oh, also, it only works on relatively modern versions of Linux. (RHEL5
or more recent.)

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Leak.pm
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20100704/274bd8a1/attachment.pm>


More information about the developers mailing list