Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Let The Music Play: Join EFF Today

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 109 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       dprofpp [-a|-z|-l|-v|-U] [-d] [-s|-r|-u] [-q] [-F] [-I|-E]
       [-O cnt] [-A] [-R] [-S] [-g subroutine] [-G <regexp> [-P]]
       [-f <regexp>] [profile]

       dprofpp -T [-F] [-g subroutine] [profile]

       dprofpp -t [-F] [-g subroutine] [profile]

       dprofpp -G <regexp> [-P] [profile]

       dprofpp -p script [-Q] [other opts]

       dprofpp -V [profile]


       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 ver­
       sion 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 analyz­
       ing the profile data.  The above two commands can be exe­
       cuted with one dprofpp command.

               $ dprofpp -u -p test.pl

       Consult "PROFILE FORMAT" in Devel::DProf for a description
       of the raw profile.

           Time (in seconds) spent in this routine and routines
           called from it.

           Time (in seconds) spent in this routine (not including
           those called from it).

           Average time (in seconds) spent in each call of this
           routine (including those called from it).


       -a   Sort alphabetically by subroutine names.

       -d   Reverse whatever sort is used

       -A   Count timing for autoloaded subroutine as timing for
            *::AUTOLOAD.  Otherwise the time to autoload it is
            counted as time of the subroutine itself (there is no
            way to separate autoload time from run time).

            This is going to be irrelevant with newer Perls.
            They will inform "Devel::DProf" when the "AUTOLOAD"
            switches to actual subroutine, so a separate statis­
            tics for "AUTOLOAD" will be collected no matter
            whether this option is set.

       -R   Count anonymous subroutines defined in the same pack­
            age separately.

       -E   (default)  Display all subroutine times exclusive of
            child subroutine times.

       -F   Force the generation of fake exit timestamps if
            dprofpp reports that the profile is garbled.  This is
            only useful if dprofpp determines that the profile is
            garbled due to missing exit timestamps.  You're on
            your own if you do this.  Consult the BUGS section.

       -I   Display all subroutine times inclusive of child sub­
            routine times.

       -l   Sort by number of calls to the subroutines.  This may
            help identify candidates for inlining.

       -O cnt
            Show only cnt subroutines.  The default is 15.

       -p script
            Tells dprofpp that it should profile the given script

       -t   Display subroutine call tree to stdout.  Subroutine
            statistics are not displayed.  When a function is
            called multiple consecutive times at the same calling
            level then it is displayed once with a repeat count.

       -S   Display merged subroutine call tree to stdout.
            Statistics are displayed for each branch of the tree.

            When a function is called multiple (not necessarily
            consecutive) times in the same branch then all these
            calls go into one branch of the next level.  A repeat
            count is output together with combined inclusive,
            exclusive and kids time.

            Branches are sorted w.r.t. inclusive time.

       -U   Do not sort.  Display in the order found in the raw

       -u   Display user times rather than user+system times.

       -V   Print dprofpp's version number and exit.  If a raw
            profile is found then its XS_VERSION variable will be
            displayed, too.

       -v   Sort by average time spent in subroutines during each
            call.  This may help identify candidates for inlin­

       -z   (default) Sort by amount of user+system time used.
            The first few lines should show you which subroutines
            are using the most time.

       -g "subroutine"
            Ignore subroutines except "subroutine" and whatever
            is called from it.

       -G <regexp>
            Aggregate "Group" all calls matching the pattern
            together.  For example this can be used to group all
            calls of a set of packages

              -G "(package1::)|(package2::)|(package3::)"

            or to group subroutines by name:

              -G "getNum"

       -P   Used with -G to aggregate "Pull"  together all calls
            that did not match -G.


       Applications which call _exit() or exec() from within a
       subroutine will leave an incomplete profile.  See the -F

       Any bugs in Devel::DProf, or any profiler generating the
       profile data, could be visible here.  See "BUGS" in

       Mail bug reports and feature requests to the perl5-porters
       mailing list at <perl5-porters@perl.org>.  Bug reports
       should include the output of the -V option.


               dprofpp         - profile processor
               tmon.out        - raw profile


       perl, Devel::DProf, times(2)

perl v5.8.1                 2003-09-23                 DPROFPP(1)



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds