Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Programs/Methods for analyzing an existing Perl based system

by samtregar (Abbot)
on May 30, 2002 at 16:57 UTC ( #170444=note: print w/ replies, xml ) Need Help??


in reply to Programs/Methods for analyzing an existing Perl based system

You can use a profiler, like Devel::DProf or my module Devel::Profiler, to extract a call-tree for a given request. If there are a small enough number of request types you might consider producing a call-tree for each request. This might give you an idea of how complex the application is.

Here's a quick example to get you started. First, run the code under a profiler:

$ perl -MDevel::Profiler -e 'sub foo { bar(); } sub bar { 1 }; print f +oo();' 1

Then use the appropriate tool to generate a call-tree. In this case, dprofpp:

$ dprofpp -T main::foo main::bar

-sam


Comment on Re: Programs/Methods for analyzing an existing Perl based system
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170444]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (18)
As of 2014-07-25 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (173 votes), past polls