Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Debugging script with long exec timeby tlm (Prior) |
on Aug 28, 2005 at 19:07 UTC ( [id://487281]=note: print w/replies, xml ) | Need Help?? |
Don't use print for this sort of thing; use a profiler (Devel::Profile, as davidrw mentioned). Profile your program with a relatively small load (i.e. have your program print a small fraction of the map, for example). That should be enough in most cases to tell you where the bottlenecks are, without having to wait for a long run to finish. the lowliest monk
In Section
Seekers of Perl Wisdom
|
|