There's more than one way to do things | |
PerlMonks |
RE: Generate a Graph-ical call tree for your *.pm perl modulesby ZZamboni (Curate) |
on May 25, 2000 at 04:33 UTC ( [id://14692]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Craft
|
|