develooper Front page | perl.perl5.porters | Postings from July 2008

Devel::NYTProf and Devel::Cover overlap and cross-polination

Thread Next
Tim Bunce
July 21, 2008 13:13
Devel::NYTProf and Devel::Cover overlap and cross-polination
Message ID:
On Thu, Jul 17, 2008 at 11:49:06AM +0200, Paul Johnson wrote:
> On Wed, Jul 16, 2008 at 03:00:06PM -0700, Tim Bunce wrote:
> > On Thu, May 03, 2007 at 12:56:44AM +0100, Tim Bunce wrote:
> > > I'm not very familar with this part of perl guts...
> > > 
> > > How can I find the line number of the start of the current block/scope?
> > > Or, more likely, the line number of the first statement in the block/scope?
> > 
> > I got there in the end: 
> > 
> >
> Hi Tim,
> I've not had the chance to try the module, but based on what you have
> written, do you think there might be any chance of somehow merging the
> backends of Nytprof and Devel::Cover?

I don't see much benefit at first sight. Profiling and coverage analysis
use similar technology (and may benefit from cross-pollination of
implementation ideas) but they're very different user activities.

Please excuse the tersness of my responses below.
They simply reflect an "I don't get it" point of view.

> (The corporate firewall took
> exception to your blog, so I've only seen it via links.)

Any idea why? (Perhaps reply offline. I could email a copy if you'd like.)

> As you know, Devel::Cover has something of a statement level profiler
> included, and Nytprof output is based on that of Devel::Cover.

The visual style is similar but the coode looks quite different.

> It would be great to be able to replace Devel::Cover's basic statement
> level profiler with Nytprof and combine the output.


> This would also
> give Nytprof access to the other reports in Devel::Cover.

Such as?

> This could either be done at the level of the Devel::Cover database,
> or using the annotation facility available to Devel::Cover reports.
> Does this seem worth pursuing?

Not at first sight, but perhaps I'm just being dense and missing something.
Feel free to persuade me!


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About