in reply to Debugging script with long exec time
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Debugging script with long exec time
by pg (Canon) on Aug 28, 2005 at 20:57 UTC | |
by samtregar (Abbot) on Aug 29, 2005 at 17:22 UTC |