← Index
Performance Profile   « block view • line view • sub view »
For ./awstats.pl
  Run on Wed Feb 11 19:11:27 2009
Reported on Thu Feb 12 02:07:44 2009

File/usr/share/perl/5.8/strict.pm
Statements Executed112
Total Time0.000484 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
10310.000310.00031strict::bits
9990.000190.00024strict::import
7750.000130.00029strict::unimport

LineStmts.Exclusive
Time
Avg.Code
1package strict;
2
312.0e-62.0e-6$strict::VERSION = "1.03";
4
515.0e-65.0e-6my %bitmask = (
6refs => 0x00000002,
7subs => 0x00000200,
8vars => 0x00000400
9);
10
11
# spent 314µs within strict::bits which was called 10 times, avg 31µs/call: # 7 times (159µs+0) by strict::unimport at line 34, avg 23µs/call # 2 times (52µs+0) by strict::import at line 29, avg 26µs/call # once (103µs+0) at line 25
sub bits {
12500.000132.7e-6 my $bits = 0;
13 my @wrong;
14 foreach my $s (@_) {
15267.3e-52.8e-6 push @wrong, $s unless exists $bitmask{$s};
16 $bits |= $bitmask{$s} || 0;
17 }
18 if (@wrong) {
19 require Carp;
20 Carp::croak("Unknown 'strict' tag(s) '@wrong'");
21 }
22 $bits;
23}
24
2516.2e-56.2e-5my $default_bits = bits(qw(refs subs vars));
# spent 103µs making 1 call to strict::bits
26
27
# spent 238µs (186+52) within strict::import which was called 9 times, avg 26µs/call: # once (29µs+25µs) at line 3 of /usr/share/perl/5.8/base.pm # once (16µs+27µs) by vars::BEGIN at line 8 of /usr/share/perl/5.8/vars.pm # once (28µs+0) at line 3 of /usr/share/perl/5.8/AutoLoader.pm # once (26µs+0) at line 3 of /usr/local/lib/perl/5.8.8/Geo/IP.pm # once (23µs+0) at line 5 of /usr/lib/perl/5.8/Config.pm # once (19µs+0) at line 29 of plugins/geoip.pm # once (16µs+0) at line 8 of /usr/local/lib/perl/5.8.8/Geo/IP/Record.pm # once (15µs+0) at line 15 of awstats.pl # once (14µs+0) at line 6 of /usr/share/perl/5.8/Time/Local.pm
sub import {
28189.5e-55.3e-6 shift;
29 $^H |= @_ ? bits(@_) : $default_bits;
# spent 52µs making 2 calls to strict::bits, avg 26µs/call
30}
31
32
# spent 289µs (130+159) within strict::unimport which was called 7 times, avg 41µs/call: # once (21µs+26µs) by Geo::IP::BEGIN at line 63 of /usr/local/lib/perl/5.8.8/Geo/IP.pm # once (21µs+25µs) by AutoLoader::AUTOLOAD at line 95 of /usr/share/perl/5.8/AutoLoader.pm # once (19µs+26µs) by Config::BEGIN or Config::import at line 31 of /usr/lib/perl/5.8/Config.pm # once (20µs+22µs) by AutoLoader::BEGIN or AutoLoader::unimport at line 173 of /usr/share/perl/5.8/AutoLoader.pm # once (19µs+22µs) by AutoLoader::import at line 128 of /usr/share/perl/5.8/AutoLoader.pm # once (16µs+21µs) at line 29 of plugins/geoip.pm # once (14µs+17µs) at line 15 of awstats.pl
sub unimport {
33140.000107.4e-6 shift;
34 $^H &= ~ (@_ ? bits(@_) : $default_bits);
# spent 159µs making 7 calls to strict::bits, avg 23µs/call
35}
36
3711.0e-51.0e-51;
38__END__
39