How to read NYTProf html reports?

I am completely confused by the Devel :: NYTProf reports generated by nytprofhtml . I am using an old version of NYTProf 1.90. I know this is a very old version, but should use it for a number of reasons.

So, these HTML reports look somehow (when viewing a separate report of the * .pl file):

|Line|Stmts.|   Time   |  Avg. |Code|
|42  | 6804 | 0.04506  | 7e-06 | }; |

I have never seen reports from the new version of nytprofhtml, so I'm not sure if they look the same.

In my case, this line is the slowest part of the whole program (this is not a small program). So my question is how it might look like this:}; Be the slowest part in a program with many more complex statements. I think I misunderstand what NYTProf reports.

If my question is confusing, just give me definitions of each column from these reports, will this help? This will help a lot.

I am especially interested in that Stmts. I mean. I guess, but I don't want to guess!

Thanks in advance.

+4
source share
1 answer

Stmts.- this is the number of times the statement was executed, or more precisely, the number of times the execution was moved from the statement associated with this line ( not always exactly ) depending on which statement was executed next.

Time is the sum of the time spent executing the statements associated with this line.

Avg.just Timedivided byStmts.

Devel:: NYTProf :

perl . , , , , . [...]

, :

while (<>) {
    ...
    1;
}

, ( ), , .

NYTProf, , , , .

+7

All Articles