Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RE: Generate a Graph-ical call tree for your *.pm perl modules

by ZZamboni (Curate)
on May 25, 2000 at 04:33 UTC ( [id://14692]=note: print w/replies, xml ) Need Help??


in reply to Generate a Graph-ical call tree for your *.pm perl modules

This is very cool, particularly for such a short program. I like dot a lot. It is a very powerful graphing engine.

The problem of this script is, of course, that not everyone uses the & convention for calling subroutines. One thing that comes to mind is flag "x" (1024) for the -D option to perl, which does a syntax tree dump. I have never seen its output, and I don't have perl compiled with -DDEBUGGING, but I wonder it that could be used to generate a more complete call tree.

The other option would be to run the script with "perl -d:DProf" (using the Devel::DProf module) and then use the call graph generated by dprofpp to generate the dot output. In this case, however, only the subroutines that got called during the execution are graphed.

Very interesting problem, in any case.

--ZZamboni

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://14692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found