Questions tagged [devel-nytprof]

Devel::NYTProf is a Perl source code performance profiler.

14 questions
25
votes
1 answer

Why does Perl compile diagnostics.pm if I have no diagnostics in my code?

When I was looking at the output of Devel::NYTProf v4 for a CGI program, I came across the diagnostics.pm in the report Source Code Files — ordered by exclusive time then name. First I didn't understand why that would be in the production code. I…
simbabque
  • 53,749
  • 8
  • 73
  • 136
9
votes
1 answer

NYTProf Profiler for Perl

This question is about Devel::NYTProf profiler. The output that I receive from the profiler for a simple line such as: use strict; OUTPUT: statements: 3 Time on Line: 22µs Calls: 2 Time in Sub: 12µs So my questions are: How is this 3…
runtimeZero
  • 26,466
  • 27
  • 73
  • 126
6
votes
2 answers

Profiling a Perl CGI script that times-out

I have a Perl CGI application that sometimes times out, causing it to be killed by Apache and 504 Gateway Time-out error to be sent to browser. I am trying to profile this application using NYTProf, however I cannot read profile data: $ nytprofhtml…
5
votes
2 answers

How to use NYTProf when there are multiple processes

In my application, I have multiple processes. Initially I start one Perl process by running .pl file, it in turn calls two more .pl scripts creating 2 new processes. How to use Profile such a code. I did NYTProf, merged the results and opened with…
rvkreddy
  • 183
  • 1
  • 9
5
votes
2 answers

Using Devel::NYTProf on program that fork/execs

First I export PERL5OPT=-d:NYTProf from the command line so that my debugging option will be inherited by child processes. Then I launch my Perl program contactd. It forks to become a daemon process, and then fork/execs nine instances of another…
Chap
  • 3,649
  • 2
  • 46
  • 84
4
votes
1 answer

How to read NYTProf html reports?

I'm completely confused about Devel::NYTProf reports generated by nytprofhtml. I'm using old version of NYTProf 1.90. I know it is very old version but should use it for number of reasons. So these HTML reports look something like this (when…
ggat
  • 460
  • 5
  • 15
3
votes
2 answers

Profiling foswiki with NYTProf results in incomplete profile data

I've an foswiki installation which is really slow (~ 60 seconds for a uncached page). I've tried to profile the installation with NYTProf, according to http://foswiki.org/Support/NYTProfDebugging with the following command: > sudo -u www-data…
sven.to
  • 270
  • 2
  • 7
2
votes
1 answer