develooper Front page | perl.beginners | Postings from March 2002

Re: Exhaustive graph of subroutines

Thread Previous
From:
Peter Scott
Date:
March 22, 2002 12:11
Subject:
Re: Exhaustive graph of subroutines
Message ID:
4.3.2.7.2.20020322120551.00b72d90@shell2.webquarry.com
At 12:01 PM 3/22/02 -0800, I wrote:
>At 04:43 PM 3/22/02 +0100, Patrice Boisieau wrote:
>>Hello
>>
>>Does it exist a CPAN module that computes the exhaustive graph of the 
>>subroutines of a script ?
>
>It is not possible in general to tell such things from a Perl program 
>because it could always call a subroutine that is generated at runtime.
>
>I was, however, able to find 
>http://groups.google.com/groups?oi=djq&selm=an_578898494
>which should aid in static analysis.
>
>(Dynamic analysis should be possible with something that uses DB hooks 
>like DProf.  But I couldn't find any Devel:: module that does that.  Am I 
>missing something?  I was sure someone would have done this.)

Weelll... there is Devel::TraceCalls 
(http://search.cpan.org/search?dist=Devel-TraceCalls).  But something tells 
me you're not going to be very happy with that.

You may be happier with Devel::TraceFuncs 
(http://search.cpan.org/search?dist=traceFunc).  Of course, being dynamic, 
you'll get annoying output on recursive function calls.  Disclaimer: I 
haven't used this module, have no idea how easy it is etc.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About