[forwarded submission from a non-member address -- rjk]


From: David Turner <[EMAIL PROTECTED]>
Date: 13 May 2002 16:32:54 -0500
Subject: Re: [Boston.pm] Source Code Visualization
To: James Freeman <[EMAIL PROTECTED]>
Cc: Boston Perl Mongers <[EMAIL PROTECTED]>

It seems like you could grovel through the symbol table and replace each
func with a new sub which marks down the call in a hash somewhere and
then calls the original sub.  I saw an example of something similar on
Perlmonks, but I can't find it now.  The advantage of doing it at
runtime is it deals with evals and the like, and it doesn't capture
things that look like calls but aren't like: foo ('bar') if (0);

On Mon, 2002-05-13 at 11:28, James Freeman wrote:
> Hi Folks,
> 
> I am wondering what toolkit's (preferably open source) folks use out
> there to visualize the calling structure of source code before I roll my
> own.  This might be something like this:
> 
> main:
> || |
> || ---->sub 1
> ||     ||
> ||     |----->sub 1a
> ||     ----->sub 1b
> ||---->sub 2
> ---->sub 3
>      |
>      ------->sub 3a
> 
> Or something more visually pretty.  The best version would have a
> language arguement so that I could use it for Perl, Python, Java, etc.
> 
> Thanks for any help you can provide,
> 
> Jim
-- 
-Dave Turner                           Stalk Me: 617 441 0668
"Don't insult mathematics." -DJB

Reply via email to