Re: [请益] perl的call graph做法or工具

楼主: lgen7604   2013-11-06 23:49:44
※ 引述《kotou (Eddie)》之铭言:
: 各位大大好
: 因为小弟研究的关系,所以有很多程式码要分析
: 小弟先前有问过如何用perl写C/C++的call graph
: 之后是使用cflow这款工具,配合system函式执行
: 大量输出每只程式的function call
: 目前想要分析perl的程式码
: 我有上网找资料
: 但大多都是要在分析的程式码内引用特定的模组
: 我希望能够另外写一只程式以读档的方式产生perl的call graph
: 想请问各位大大,有没有写过或用过可以产生perl的call graph的工具
: 或是有写过可以给我一些提点
: 非常谢谢各位的帮助
推荐 NYTProf + kcachegrind
执行方法:
# profile code and write database to ./nytprof.out
perl -d:NYTProf some_perl_script.pl
# Convert an NYTProf profile into Callgrind format
nytprofcg

Links booklink

Contact Us: admin [ a t ] ucptt.com