Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

dprofpp

by markjuszczec (Initiate)
on Jun 02, 2000 at 15:25 UTC ( [id://15993]=perlquestion: print w/replies, xml ) Need Help??

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

Oh monks, wise in the ways of Perl, I'm trying to use dprofpp. I've downloaded, installed and run DProf on a script to generate a tmon.out file. When I try to use dprofpp to format it, I get a syntax error if I do it from the debugger. The only references I can find in the documentation say things like "run dprofpp." Where do I find out how to run dprofpp? your unworthy acolyte Mark

Replies are listed 'Best First'.
Re: dprofpp
by jjhorner (Hermit) on Jun 02, 2000 at 15:52 UTC
    NAME dprofpp - display perl profile data SYNOPSIS dprofpp [-a|-z|-l|-v|-U] [-s|-r|-u] [-q] [-F] [-I|-E] [-O cnt] [-A] [-R] [-S] [-g subroutine] [profile] dprofpp -T [-F] [-g subroutine] [profile] dprofpp -t [-F] [-g subroutine] [profile] dprofpp -p script [-Q] [other opts] dprofpp -V [profile] DESCRIPTION The dprofpp command interprets profile data produced by a profiler, such as the Devel::DProf profiler. Dprofpp will read the file tmon.out and will display the 15 subroutines which are using the most time. By default the times for each subroutine are given exclusive of the times of their child subroutines. To profile a Perl script run the perl interpreter with the -d switch. So to profile script test.pl with Devel::DProf the following command should be used. $ perl5 -d:DProf test.pl Then run dprofpp to analyze the profile. The output of dprofpp depends on the flags to the program and the version of Perl you're using. $ dprofpp -u Total Elapsed Time = 1.67 Seconds User Time = 0.61 Seconds Exclusive Times %Time Seconds #Calls sec/call Name 52.4 0.320 2 0.1600 main::foo 45.9 0.280 200 0.0014 main::bar 0.00 0.000 1 0.0000 DynaLoader::import 0.00 0.000 1 0.0000 main::baz The dprofpp tool can also run the profiler before analyzing the profile data. The above two commands can be executed with one dprofpp command. $ dprofpp -u -p test.pl Consult the PROFILE FORMAT entry in the Devel::DProf manpage for a description of the raw profile.

    The rest can be retrieved using 'perldoc dprofpp'. 'perldoc -f dprofpp' doesn't work.

    J. J. Horner
    Linux, Perl, Apache, Stronghold, Unix
    jhorner@knoxlug.org http://www.knoxlug.org/
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-19 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found