Thursday, September 21, 2006

Profiling a Perl script

When profiling a script using
export PERL5OPT=-d:Dprof You need to unset PERL5OPT before running profiling a script because that's a perl script too and it will overwrite your tmon.out and wreck the results. Only use PERL5OPT if you can't invoke perl directly with -d:Dprof as with inquest.

No comments: