in reply to performance profiling

You can get finer detail from Devel::SmallProf (a line-based profiler) but in practice, sub-based is usually more useful. If the grain seems too large for you, it may mean some of your subs are a bit too large.

Replies are listed 'Best First'.
Re^2: performance profiling
by thedoe (Monk) on Sep 25, 2006 at 17:01 UTC

    Thanks perrin, this is just the type of thing, in combination with grep's sectioning, that I was looking for.

    Using a combination of this, Benchmark, and Devel::DProf I should be able to isolate any kind of bottleneck I run into.

      I have tendency to be a little short on patience at times. Therfore I usually use Devel::FastProf. It is a perline profiler. It can be used just like dprof:

      $ perl -d:FastProf my_script.pl $ fprofpp -t 10
      Update: Also, here is an article on profiling code and how to understand the data being delivered to you by the profiler. It was helpful to me when I was learning to better profile my code: http://www.ddj.com/184404580.