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

Re: Exhaustive graph of subroutines

Thread Previous
Peter Scott
March 22, 2002 12:11
Re: Exhaustive graph of subroutines
Message ID:
At 12:01 PM 3/22/02 -0800, I wrote:
>At 04:43 PM 3/22/02 +0100, Patrice Boisieau wrote:
>>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 
>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 
(  But something tells 
me you're not going to be very happy with that.

You may be happier with Devel::TraceFuncs 
(  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

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