APM: Determining speed
Marc Majcher
majcher at majcher.com
Thu Dec 5 10:58:07 CST 2002
"Goldilox" <Goldilox at teachnet.edb.utexas.edu>:
:How can I determine where the time is being spent? i.e. I want to see
:the time spent waiting for the database to deliver its payload vs how long it
:takes the Perl script to do its work. I have no idea of the terminology I
:should be using here, but I'm hoping this is a common interest that might have
:some modules or commands readily available?
The key terms you're looking for are "benchmarking" and "profiling".
If your code is broken down into functional units, the standard
Benchmark module should be a good place to start:
http://search.cpan.org/author/JHI/perl-5.8.0/lib/Benchmark.pm
If you're interested in more profiling-type stuff, CPAN again:
http://search.cpan.org/author/JHI/perl-5.8.0/ext/Devel/DProf/DProf.pm
Those two modules should be a good place to start - keep searching on
these terms for more varied and useful information...
--
DVS
"One is always considered mad when one perfects something
that others cannot grasp." -- Ed Wood
More information about the Austin
mailing list