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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-12-18 18:50 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (495 votes). Check out past polls.