How can I generate call graphs for Perl modules and scripts?

I have a bunch of Perl scripts and Perl modules given to me by someone. I have a driver program that tests all these scripts and modules. I want to generate a call graph and see the flow.

Is there something available for Perl for doing this?
I'd like something like pycallgraph (for python). I am running all this in AIX.

Upvotes: 2

Views: 1227

Answers (1)

brian d foy
brian d foy

Reputation: 132913

Simon Cozens tells you how to do it in Profiling Perl on Perl.com. He uses a combination of Devel::DProf and GraphViz.

Upvotes: 13

Related Questions