Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2016-10-26 09:22 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (338 votes). Check out past polls.