Keep It Simple, Stupid | |
PerlMonks |
Re: Identify subs and their sourceby TomDLux (Vicar) |
on May 24, 2011 at 23:25 UTC ( [id://906584]=note: print w/replies, xml ) | Need Help?? |
Sounds like you want something like Devel::dprof ( or NYTProf ), but not to track how long is spent in each subroutine, but rather to generate a list of all subroutines. You could write something resembling the profiling module ... You might start with an actual profiling module, and strip away most of the functionality, merely storing the fully-qualified name of each subroutine. Or you could write something to parse tmon.out, the data file generated by the existing modules. This is easier for small programs than large ones, especially considering the Devel:X module will slow things down drastically. As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In Section
Seekers of Perl Wisdom
|
|