Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

how to profile a subroutine and its statements

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

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

Hi
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 NYTProf.pm 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 (Cardinal) 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2024-04-23 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found