Shevek said:

> On Thu, 10 Oct 2002, Rafiq Ismail wrote:
>
>> Does anyone know of a a way to isolate code fragments/methods of only
>> those fragments of codes which get invoked by a script.
>
> Isn't this traditionally the job of the code profiler?

Or more specifically, a code coverage tool.  And I just happen to have one
of those sitting in my CPAN directory :-)
Actually, Devel::Cover is probably not only overkill for this, but you'll
also have to work fairly hard to get what you want.
I have considered adding subroutine coverage a number of times, as the new
weakest form of coverage available.  Maybe I should actually do that.
In any case, hacking Devel::Coverage to bits will get you what you want.

Actually, what is it you want?  To automatically create a program/module
with only the bits you need?  To manually do the same?  Something else?  I
had assumed the former, but in that case, why?
-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net




Reply via email to