dprofpp − display perl profile data


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 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 use the following:

        $ 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 " PROFILE FORMAT " in Devel::DProf for a description of the raw profile.


Columns are:

Percentage of time spent in this routine.


Number of calls to this routine.


Average number of seconds per call to this routine.


Name of routine.


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).



Sort alphabetically by subroutine names.


Reverse whatever sort is used


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 statistics for "AUTOLOAD" will be collected no matter whether this option is set.


Count anonymous subroutines defined in the same package separately.


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


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.


Display all subroutine times inclusive of child subroutine times.


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 and then interpret its profile data. See −Q.


Used with −p to tell dprofpp to quit after profiling the script, without interpreting the data.


Do not display column headers.


Display elapsed real times rather than user+system times.


Display system times rather than user+system times.


Display subroutine call tree to stdout. Subroutine statistics are not displayed.


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.


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 with regard to inclusive time.


Do not sort. Display in the order found in the raw profile.


Display user times rather than user+system times.


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


Sort by average time spent in subroutines during each call. This may help identify candidates for inlining.


(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"


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

−f <regexp>

Filter all calls matching the pattern.


Display brief help and exit.


Display long help and exit.


The environment variable DPROFPP_OPTS can be set to a string containing options for dprofpp. You might use this if you prefer −I over −E or if you want −F on all the time.

This was added fairly lazily, so there are some undesirable side effects. Options on the commandline should override options in DPROFPP_OPTS−−but don’t count on that in this version.


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

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

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)

More Linux Commands

gnutls_cipher_decrypt(3) - API function - Linux manual page
This function will decrypt the given data using the algorithm specified by the context. RETURNS Zero or a negative error code on error. SINCE 2.10.0 REPORTING B

Tcl_GetChannelNames(3) - buffered I/O facilities using chann
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

smi_module(3) - SMI module information routines (Man Page)
These functions retrieve various meta information on MIB modules. Other functions to retrieve the definitions within a module are documented in smi_type(3), smi

SDL_WasInit(3) - Check which subsystems are initialized.....
SDL_WasInit allows you to see which SDL subsytems have been initialized. flags is a bitwise ORd combination of the subsystems you wish to check (see SDL_Init fo

gvfs-set-attribute(1) Set file attributes - Linux man page
gvfs-set-attribute allows to set a file attribute on a file. File attributes can be specified with their gvfs name, e.g. standard::icon. Note that not all file

ferror_unlocked(3) - nonlocking stdio functions (Man Page)
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse

XtOffsetOf(3) - determine the byte offset or number of array
The XtOffset macro is usually used to determine the offset of various resource fields from the beginning of a widget and can be used at compile time in static i

glutReshapeFunc(3) - sets the reshape callback for the curre
glutReshapeFunc sets the reshape callback for the current window. The reshape callback is triggered when a window is reshaped. A reshape callback is also trigge

XtRemoveEventTypeHandler(3) - extension event handling......
The XtInsertEventTypeHandler function registers a procedure with the dispatch mechanism that is to be called when an event that matches the specified event_type

uudecode(1) - encode a binary file, or decode its representa
Uuencode and uudecode are used to transmit binary files over channels that support only simple ASCII data. Uuencode reads file (or by default the standard input

Tcl_FSJoinPath(3) - procedures to interact with any filesyst
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

nagiosstats(8) - report statistics information from the Nagi
nagiosstats is a program designed to provide information on the running Nagios system. It can provide a brief summary of information, or it can be used to expor

We can't live, work or learn in freedom unless the software we use is free.