13 messages in org.perl.perl5-portersRe: Find the line number of the curre...
FromSent OnAttachments
Tim BunceMay 2, 2007 4:56 pm 
Artur BergmanMay 2, 2007 6:59 pm 
Dave MitchellMay 3, 2007 3:43 am 
Paul JohnsonMay 3, 2007 4:07 am 
Tim BunceMay 3, 2007 4:15 am 
Artur BergmanMay 3, 2007 10:34 am 
Artur BergmanMay 3, 2007 10:49 am 
Tim BunceMay 3, 2007 1:46 pm 
Tim BunceAug 8, 2007 6:13 am 
Tim BunceAug 8, 2007 6:33 am 
Dave MitchellAug 8, 2007 8:33 am 
Tim BunceJul 16, 2008 2:59 pm 
Paul JohnsonJul 17, 2008 2:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Find the line number of the current block from XS code?Actions...
From:Paul Johnson (pa@pjcj.net)
Date:Jul 17, 2008 2:48:43 am
List:org.perl.perl5-porters

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:

http://blog.timbunce.org/2008/07/15/nytprof-v2-a-major-advance-in-perl-profilers/

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? (The corporate firewall took exception to your blog, so I've only seen it via links.)

As you know, Devel::Cover has something of a statement level profiler included, and Nytprof output is based on that of Devel::Cover. 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.

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?