For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2006 > Devel::Dprof









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Devel::Dprof
Danny Rice

2006-12-15, 6:59 pm

I am trying to use the Dprof profiler on a largish script but keep
getting a segmentation fault. The script runs fine itself and I am only
trying to see how much time is spent in each function. The tmon.out
file never goes beyond PART2. Here is the output:

#fOrTyTwO
$hz=100;
$XS_VERSION='DProf 20050603.00';
# All values are given in HZ
$over_utime=3; $over_stime=-1; $over_rtime=3;
$over_tests=10000;


PART2

I tested it on a simpler script and it worked fine.

If there is a better list to send this to please let me know.

-Danny
Ovid

2006-12-15, 6:59 pm

--- Danny Rice <dwrice@indiana.edu> wrote:

> I am trying to use the Dprof profiler on a largish script but keep
> getting a segmentation fault.


If I recall correctly, it was Sam Tregar who once voted "Devel::Dprof
the module most likely to segfault".

Today, I suspect most people use Devel::Profile. It works fairly well
(and you can get per-line profiling with Devel::SmallProf).

Ironically, in trying to profile some code recently, Devel::Profile was
segfaulting and Devel::Dprof was not, so your mileage may vary.

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com