Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 692
not-exactly-a-unixhater Avatar asked Dec 06 '25 17:12

not-exactly-a-unixhater


1 Answers

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

like image 55
brian d foy Avatar answered Dec 08 '25 08:12

brian d foy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!