Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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: (4)
As of 2014-09-17 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (55 votes), past polls