Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Inspection/Introspection

by mattr (Curate)
on Jun 22, 2002 at 14:23 UTC ( #176481=note: print w/replies, xml ) Need Help??

in reply to Inspection/Introspection

While I cannot recommend from personal experience, these seem to be the links you need. Though I actually have a porting project that could use them I end up writing little greppy scripts that make text reports of what calls what. So for my current project besides just grepping the names of all subs in a file at the command line, I have written some utilities based on File::Find. For example make a list of all the files in all folders, sort by suffix, find callers, find all html files that call a given cgi, etc. This info is important for me to refactor it all.

But I was moved to check again since I remember finding (and I think mentioning on PM, somewhere..) someone who had done a cool demonstration of graphing of his perl program at runtime. I couldn't find it but think this is probably GraphViz..

Answer: Generate UML from Perl code? includes four responses including autodia.
Generate a Graph-ical call tree for your *.pm perl modules uses graphviz at AT&T.
An article at DDJ about using graphviz.
cpan search for graphviz which showed me some other things like GraphViz::ISA and Joe McMahon's site on GraphViz::Data::Structure

Hope this helps.

Replies are listed 'Best First'.
Re: Re: Inspection/Introspection
by ceedee (Sexton) on Jun 22, 2002 at 15:15 UTC
    These are very good, thanks.
    When I come up with a solution I'll post it. Even if its just implemented similarly to the above examples.
    There's alot to digest.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176481]
[marioroy]: Lady_Aleena Angels on earth are real people. That's awesome.
[Lady_Aleena]: marioroy, what does MCE stand for in this instance? There are 3 pages of abbreviations to go through.
[Lady_Aleena]: ^ or Discipulus...
[marioroy]: Many-core Engine
[choroba]: MCE
[karlgoethebier]: is about to reach nirvana tonight...
[Lady_Aleena]: It could have meant a "Miserably Cute Event" or "Man Crush Everyday". 8)
[Corion]: choroba: Re the one-shot thing, I also thought of bit vectors and/or indexes into one common array from the hashes, but that makes maintenance of all these indices a chorse
[Corion]: *core
[Corion]: ** chore

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-05-29 08:28 GMT
Find Nodes?
    Voting Booth?