Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Analyzing Perl Code

by toolic (Bishop)
on Sep 18, 2012 at 14:50 UTC ( #994295=note: print w/replies, xml ) Need Help??

in reply to Analyzing Perl Code

Since your blog mentions tracing several times, CPAN has handy modules, such as Devel::Trace and Devel::DumpTrace.

It might be worth copy and pasting key excerpts from your blog here (in readmore tags) in case your link becomes stale.

Replies are listed 'Best First'.
Re^2: Analyzing Perl Code
by nitin1704 (Sexton) on Sep 18, 2012 at 16:59 UTC
    Thanks toolic! These modules seem to be great and much easier to use, though, they produce really detailed traces (one line for every statement). I would like just one line for each subroutine entered, because the scripts I'm working with are really long. Nevertheless, I will try these modules and see how it works out. :)
        Thanks Jan, I noticed that your module uses Hook::LexWrap too. So I was moving in the right direction after all. Today I found this other module Debug::Trace. I have a feeling TraceSubs is probably better with it's indented output representing call depth. Debug::Trace on the other hand doesn't require any changes in the source code. Are there any other differences?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994295]
[Corion]: Oooh - I had another devious idea - "Host C" - a C language where every struct is 4K in size. This makes memory and disk access incredibly fast ;)
[Corion]: (because everything is aligned to a memory page and all pages can be read+written directly from disk without buffering)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-04-25 09:00 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (449 votes). Check out past polls.