如何为Perl模块和脚本生成调用图? [英] How can I generate call graphs for Perl modules and scripts?

查看:110
本文介绍了如何为Perl模块和脚本生成调用图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多人给我的Perl脚本和Perl模块。我有一个驱动程序,可以测试所有这些脚本和模块。我想生成一个调用图并查看流程。

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.

Perl是否有可用的工具来做到这一点?

我想要类似的东西 pycallgraph (适用于python)。我正在AIX中运行所有这些操作。

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

推荐答案

Simon Cozens告诉您如何在 = noreferrer> Perl.com 。他使用了 Devel :: DProf GraphViz

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

这篇关于如何为Perl模块和脚本生成调用图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆