On Mon, May 24, 2010 at 06:52:15AM -0400, James E Keenan wrote:
> Dan MacNeil wrote:
>>
>
>>
>> What information is in the 'time' column ?
>>
>
> Like you, I could not find any information about this in any of:
>
> perldoc Devel::Cover
> perldoc cover
> perldoc Devel::Cover::Tutorial
>
> ISTR a post by Paul Johnson about this a few years back.  You might want  
> to search the Google Groups archive of this list for that.

I probably just mumbled something about how long an opcode takes to run
or something.  I've never been very clear about it because the whole
concept is a little dodgy.  Essentially, when I note that a statement
has been executed I make a note of how long it was since the last
statement was executed, and the sum of those times is the number you
see, probably in microseconds or something.  The figure is probably a
little suspect around the beginning and/or end of subroutines and
probably in other places too, and is really only interesting as a
comparison to give you a quick idea of the relative speed of sections of
your code.

> In any event, you needn't worry too much about that.  It may be  
> profiling information, but if that is the sort of information you are  
> looking for you are better off with tools specifically designed for that  
> purpose such as Devel::Pprof and Devel NYTprof.

Certainly you should be using NYTprof for anything serious in this area,
but it didn't exist when I first wrote this code.  Now it does, I'm
considering removing the time coverage.  Does anyone have any thoughts
one way or the other about that?

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

Reply via email to