Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 surveying the Monastery: (9)
As of 2015-07-31 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls