Sisyphus repository
Last update: 2018-01-24 10:08:50 +0300 | SRPMs: 18243 | Sign in or Sign up
en ru uk br
ALT Linux repositories
hide window
Sisyphus: 2.02-alt2
p8: 2.02-alt2
p7: 2.02-alt1.1.1
t7: 2.02-alt1.1.1
Platform6: 2.02-alt1.1.1
t6: 2.02-alt1.1.1
Platform5: 2.02-alt1.1
5.1: 2.02-alt1.1

Other repositories
hide window
CPAN: 2.02

Group :: Development/Perl
Source RPM: perl-Devel-SmallProf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR (0/0)   Repocop 

Current version: 2.02-alt2
Built: about 2 years ago
Size: 14.6 KB
Repocop status: ok

Home page:

License: Artistic
Summary: per-line Perl profiler

The Devel::SmallProf profiler is focused on the time taken for a program run on
a line-by-line basis. It is intended to be as "small" in terms of impact on
the speed and memory usage of the profiled program as possible and also in
terms of being simple to use. Those statistics are placed in the file
smallprof.out in the following format:

<num> <time> <ctime> <line>:<text>

where <num> is the number of times that the line was executed, <time> is the
amount of "wall time" (time according the the clock on the wall vs. cpu time)
spent executing it, <ctime> is the amount of cpu time expended on it and <line>
and <text> are the line number and the actual text of the executed line (read
from the file).

The package uses the debugging hooks in Perl and thus needs the -d switch,
so to profile, use the command:

perl5 -d:SmallProf

Once the script is done, the statistics in smallprof.out can be sorted to
show which lines took the most time. The output can be sorted to find which
lines take the longest, either with the sort command:

sort -k 2nr,2 smallprof.out | less

or a perl script:

@sorted = sort {(split(/\s+/,$b))[2] <=>
(split(/\s+/,$a))[2]} <PROF>;
close PROF;
print join('',@sorted);

Current maintainer: Igor Vlasenko

List of contributors: ACL: List of rpms provided by this srpm:
  • perl-Devel-SmallProf
Recent changes (last three changelog entries):

2015-12-08 Igor Vlasenko <viy at> 2.02-alt2

    - NMU: fixed build with perl 522

2010-11-22 Igor Vlasenko <viy at> 2.02-alt1.1.1

    - repair after perl 5.12 upgrade using girar-nmu

2008-10-06 Igor Vlasenko <viy at> 2.02-alt1.1

    - NMU for unknown reason:
    the person above was too neglectant to add --changelog "- NMU: " option.

© 2009–2018 Igor Zubkov