EnglishFrenchSpanish

Ad


OnWorks favicon

dprofppp - Online in the Cloud

Run dprofppp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dprofppp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dprofpp - display perl profile data

SYNOPSIS


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]

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

OUTPUT


Columns are:

%Time
Percentage of time spent in this routine.

#Calls
Number of calls to this routine.

sec/call
Average number of seconds per call to this routine.

Name
Name of routine.

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

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

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

OPTIONS


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

-R Count anonymous subroutines defined in the same package 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 subroutine 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 and then interpret its profile
data. See -Q.

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

-q Do not display column headers.

-r Display elapsed real times rather than user+system times.

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

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

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

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

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

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

-f <regexp>
Filter all calls matching the pattern.

-h Display brief help and exit.

-H Display long help and exit.

ENVIRONMENT


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.

Use dprofppp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad