good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: understanding devel::leakby nonnonymousnonk (Novice) |
on Oct 04, 2007 at 11:30 UTC ( [id://642630]=note: print w/replies, xml ) | Need Help?? |
Thanks for clarifying the debugging thing, I had a feeling something must be missing. If anyone has any pointers to getting devel::leak fully working I'd be grateful. I don't think I've created any circular references, I've certainly not got any re-entrant code. However, I have loads of anonymous arrays. I did find_cycle and Dump() a few variables at function exit points and found all had ref counts greater than 1. I'll see what I can find with devel::peek. edit Oops, Dump() is devel::peek, I was associating it with data::dumper. Ho hum. I've just added an undef ....; to the end of all relevent functions to correspond with all the my ......; but I feel like I'm guessing. There must be a better way to get an idea of memory use than watching perfmon.
In Section
Seekers of Perl Wisdom
|
|