Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl: show used subroutines

In some project ( Mason ) there is a lot of perl modules (> 200). Really used only 5-10% from this code. How i can look, which subroutines is used (or unused)?

like image 858
krevedko Avatar asked Feb 19 '23 16:02

krevedko


1 Answers

In addition to choroba's link, you can use a profiler to show what subroutines are called (how many times and how long they took):

  • Profiling Perl
  • Devel::NYTProf - Profiling Perl code
like image 72
Kyle Burton Avatar answered Feb 27 '23 22:02

Kyle Burton