Next | Making Programs Faster | 40 |
Timing:
real 0m8.356s user 0m6.770s sys 0m0.030s
Let's see what we can do about that
Perl comes standard with a module called Devel::DProf
This module records subroutine entry and exit times as the program runs
It leaves behind this trace data in a file called tmon.out
To use it:
perl -d:DProf mfa1.pl MBOX > /dev/null
Send output to /dev/null to avoid device-related biases
Next | Copyright © 2003 M. J. Dominus |