Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

how to profile a subroutine and its statements

by ghosh123 (Monk)
on Aug 13, 2013 at 12:01 UTC ( #1049257=perlquestion: print w/replies, xml ) Need Help??

ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:

In my application, I have many sub routines across huge modules. How can I profile a sub routine or its statements in a module with out using any perl module like Devel::NYTProf. I know does sub routine and statement profiling. But due to unavailability of that in a perl version, I can not use NYTProf. I can download but still that is not a solution due to some constraints. Any other easy mechanism ?

  • Comment on how to profile a subroutine and its statements

Replies are listed 'Best First'.
Re: how to profile a subroutine and its statements
by choroba (Archbishop) on Aug 13, 2013 at 12:09 UTC
    You can use Devel::DProf, it is part of the standard Perl distribution. But if you have ever used Devel::NYTProf, you will be disapointed.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: how to profile a subroutine and its statements
by zwon (Abbot) on Aug 13, 2013 at 16:15 UTC
    Perhaps you can profile your modules on a different version of perl, where you can use Devel::NYTProf?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1049257]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-05-25 03:15 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (84 votes). Check out past polls.