For When You Can't Have The Real Thing
[ start | index | login ]
start > perl > Perl Profiler

Perl Profiler

Created by dave. Last edited by dave, 2 years and 284 days ago. Viewed 428 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Basic Profiling

>>SmallProf

This module is available on rpmforge as perl-Devel-SmallProf

$ perl5 -d:SmallProf test.pl

This creates a file smallprof.out which for each line of perl code lists the number of times the line was invoked, the total wall time spent in that line, and the total cpu time spent in that line.

To sort by total wall time for each line:

$ sort -k 2nr,2 smallprof.out | less

no comments | post comment

Virtual Dave Megaplex:

Internet Explorer 6 Users >>Click Here

(read this note about local search)

Logged in Users: (0)
… and 2 Guests.


Editing: snipsnap-help, Image Macro

Installed 2 years and 132 days ago
Powered By >>SnipSnap Version 1.0b1-uttoxeter

This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt